equal
deleted
inserted
replaced
50 # base xml views ############################################################## |
50 # base xml views ############################################################## |
51 |
51 |
52 class XMLView(EntityView): |
52 class XMLView(EntityView): |
53 """xml view for entities""" |
53 """xml view for entities""" |
54 __regid__ = 'xml' |
54 __regid__ = 'xml' |
55 title = _('xml') |
55 title = _('xml export (entities)') |
56 templatable = False |
56 templatable = False |
57 content_type = 'text/xml' |
57 content_type = 'text/xml' |
58 xml_root = 'rset' |
58 xml_root = 'rset' |
59 item_vid = 'xmlitem' |
59 item_vid = 'xmlitem' |
60 |
60 |
229 w(u'<a href="%s"><img src="%s" alt="rss"/></a>\n' % (xml_escape(url), rss)) |
229 w(u'<a href="%s"><img src="%s" alt="rss"/></a>\n' % (xml_escape(url), rss)) |
230 |
230 |
231 |
231 |
232 class RSSView(XMLView): |
232 class RSSView(XMLView): |
233 __regid__ = 'rss' |
233 __regid__ = 'rss' |
234 title = _('rss') |
234 title = _('rss export') |
235 templatable = False |
235 templatable = False |
236 content_type = 'text/xml' |
236 content_type = 'text/xml' |
237 http_cache_manager = httpcache.MaxAgeHTTPCacheManager |
237 http_cache_manager = httpcache.MaxAgeHTTPCacheManager |
238 cache_max_age = 60*60*2 # stay in http cache for 2 hours by default |
238 cache_max_age = 60*60*2 # stay in http cache for 2 hours by default |
239 item_vid = 'rssitem' |
239 item_vid = 'rssitem' |