~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-08-03 11:23:34 UTC
  • mfrom: (13457.6.16 upgrade-stderr)
  • Revision ID: launchpad@pqm.canonical.com-20110803112334-acnupsa7jmzmdeet
[r=stevenk][bug=819751] Fix the implementation of several methods in
 LoggingUIFactory.

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.interfaces.launchpad import IFeedsApplication
 
23
from canonical.launchpad.webapp import (
 
24
    canonical_url,
 
25
    urlappend,
 
26
    )
 
27
from canonical.lazr.feed import (
 
28
    FeedBase,
 
29
    FeedEntry,
 
30
    FeedPerson,
 
31
    FeedTypedData,
 
32
    )
22
33
from lp.app.browser.stringformatter import FormattersAPI
23
34
from lp.registry.interfaces.announcement import (
24
35
    IAnnouncementSet,
27
38
from lp.registry.interfaces.distribution import IDistribution
28
39
from lp.registry.interfaces.product import IProduct
29
40
from lp.registry.interfaces.projectgroup import IProjectGroup
30
 
from lp.services.feeds.feed import (
31
 
    FeedBase,
32
 
    FeedEntry,
33
 
    FeedPerson,
34
 
    FeedTypedData,
35
 
    )
36
 
from lp.services.feeds.interfaces.application import IFeedsApplication
37
 
from lp.services.webapp import (
38
 
    canonical_url,
39
 
    urlappend,
40
 
    )
41
41
 
42
42
 
43
43
class AnnouncementsFeedBase(FeedBase):
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
 
    # webapp/metazcml.py to provide a mapping from the supported
 
116
    # launchpad/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
 
    # lp/services/feeds/configure.zcml.
 
120
    # launchpad/zcml/feeds.zcml.
121
121
    usedfor = IFeedsApplication
122
122
 
123
123
    def _getItemsWorker(self):