~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/services/timeline/requesttimeline.py

  • Committer: Gary Poster
  • Date: 2011-07-27 15:25:32 UTC
  • mto: This revision was merged to the branch mainline in revision 13541.
  • Revision ID: gary.poster@canonical.com-20110727152532-50akr19c7mgcj5qu
add config option for timeout value

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
 
11
11
__metaclass__ = type
12
12
 
13
 
from timeline import Timeline
14
 
 
15
13
# XXX RobertCollins 2010-09-01 bug=623199: Undesirable but pragmatic.
16
14
# Because of this bug, rather than using request.annotations we have
17
15
# to work in with the webapp.adapter request model, which is 
18
16
# different to that used by get_current_browser_request.
19
17
from canonical.launchpad import webapp
 
18
from timeline import Timeline
20
19
 
21
20
 
22
21
def get_request_timeline(request):
28
27
    request annotations.
29
28
 
30
29
    :param request: A zope/launchpad request object.
31
 
    :return: A timeline.timeline.Timeline object for the request.
 
30
    :return: A lp.services.timeline.timeline.Timeline object for the request.
32
31
    """
33
32
    try:
34
33
        return webapp.adapter._local.request_timeline