~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/feed/announcement.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-12-25 21:06:50 UTC
  • mfrom: (14600.2.11 move-webapp)
  • Revision ID: launchpad@pqm.canonical.com-20111225210650-gyk617gude7ew6os
[rs=sinzui][no-qa] Move webapp and daemons to lp.services;
 canonical.launchpad has no code, it serves page assets.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
from zope.component import getUtility
21
21
 
22
 
from canonical.launchpad.webapp import (
 
22
from lp.services.webapp import (
23
23
    canonical_url,
24
24
    urlappend,
25
25
    )
113
113
 
114
114
    # The `usedfor` property identifies the class associated with this feed
115
115
    # class.  It is used by the `IFeedsDirective` in
116
 
    # launchpad/webapp/metazcml.py to provide a mapping from the supported
 
116
    # webapp/metazcml.py to provide a mapping from the supported
117
117
    # feed types to this class.  It is a more maintainable method than simply
118
118
    # listing each mapping in the zcml.  The only zcml change is to add this
119
119
    # class to the list of classes in the `browser:feeds` stanza of
120
 
    # launchpad/zcml/feeds.zcml.
 
120
    # lp/services/feeds/configure.zcml.
121
121
    usedfor = IFeedsApplication
122
122
 
123
123
    def _getItemsWorker(self):