~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/doc/displaying-bugs-and-tasks.txt

  • Committer: William Grant
  • Date: 2011-09-27 04:40:23 UTC
  • mfrom: (7675.1243.1 db-bug-735621)
  • mto: This revision was merged to the branch mainline in revision 14057.
  • Revision ID: william.grant@canonical.com-20110927044023-0c2qf0kkt5sahyt4
Merge jtv's unlanded LaunchpadCronScriptification.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
Let's use a few examples to demonstrate:
15
15
 
16
16
  >>> from zope.component import getUtility
17
 
  >>> from lp.services.webapp.interfaces import ILaunchBag
 
17
  >>> from canonical.launchpad.webapp.interfaces import ILaunchBag
18
18
  >>> from lp.bugs.interfaces.bugtask import BugTaskImportance, IBugTaskSet
19
19
  >>> from lp.testing import (
20
20
  ...     login,
100
100
+listing-view) to render the status:
101
101
 
102
102
  >>> from zope.component import getMultiAdapter
103
 
  >>> from lp.services.webapp.interfaces import ILaunchBag
104
 
  >>> from lp.services.webapp.servers import LaunchpadTestRequest
 
103
  >>> from canonical.launchpad.webapp.interfaces import ILaunchBag
 
104
  >>> from canonical.launchpad.webapp.servers import LaunchpadTestRequest
105
105
  >>> from lp.bugs.interfaces.bugtask import BugTaskStatus
106
106
 
107
107
  >>> def render_bugtask_status(task):