- Timestamp:
- 3 Feb 2010, 10:14:34 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/browser/pages.py
r4957 r4988 142 142 pnav = 0 143 143 144 class RSS20Feed(grok.View): 145 """An RSS 2.0 feed. 146 """ 147 grok.name('feed.rss') 148 grok.context(IUniversity) 149 grok.require('waeup.Public') 150 grok.template('universityrss20feed') 151 152 name = 'General news feed' 153 description = 'waeup.sirp now supports RSS 2.0 feeds :-)' 154 language = None 155 date = None 156 buildDate = None 157 editor = None 158 webmaster = None 159 160 @property 161 def title(self): 162 return getattr(grok.getSite(), 'name', u'Sample University') 163 164 @property 165 def contexttitle(self): 166 return self.name 167 168 @property 169 def link(self): 170 return self.url(grok.getSite()) 171 172 def update(self): 173 self.response.setHeader('Content-Type', 'text/xml; charset=UTF-8') 174 175 def entries(self): 176 return () 144 177 145 178 #
Note: See TracChangeset for help on using the changeset viewer.