~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/services/feeds/doc/feeds.txt

  • Committer: William Grant
  • Date: 2011-12-30 07:23:45 UTC
  • mto: This revision was merged to the branch mainline in revision 14611.
  • Revision ID: william.grant@canonical.com-20111230072345-c219vnmjiz8r8pah
merge canonical.lazr.feed into lp.services.feeds.

Show diffs side-by-side

added added

removed removed

Lines of Context:
108
108
by browsers and the reverse-proxy in front of the feeds servers.
109
109
 
110
110
    >>> from lp.services.config import config
111
 
    >>> from canonical.lazr.feed.feed import FeedBase
 
111
    >>> from lp.services.feeds.feed import FeedBase
112
112
    >>> from lp.bugs.feed.bug import BugsFeedBase
113
113
    >>> config.launchpad.max_feed_cache_minutes
114
114
    60
135
135
Since plain text and html are not valid xml, "<", ">", and "&" must
136
136
be escaped using xml entities such as "&lt;".
137
137
 
138
 
    >>> from canonical.lazr.feed.feed import FeedTypedData
 
138
    >>> from lp.services.feeds.feed import FeedTypedData
139
139
    >>> text = FeedTypedData("<b> and &nbsp; and &amp;")
140
140
    >>> text.content
141
141
    '&lt;b&gt; and &amp;nbsp; and &amp;amp;'