equal
deleted
inserted
replaced
192 order = 999 |
192 order = 999 |
193 need_resources = 'RSS_LOGO', |
193 need_resources = 'RSS_LOGO', |
194 visible = False |
194 visible = False |
195 |
195 |
196 def call(self, **kwargs): |
196 def call(self, **kwargs): |
197 url = html_escape(self.build_url(rql=self.limited_rql(), vid='rss')) |
197 eid = self |
|
198 if len(self.rset)==1: |
|
199 eid = self.rset[0][0] |
|
200 rql = 'Any E WHERE E is BlogEntry, E entry_of X, X eid %s' % eid |
|
201 else: |
|
202 rql = self.limited_rql() |
|
203 url = html_escape(self.build_url(rql=rql, vid='rss')) |
198 rss = self.req.external_resource('RSS_LOGO') |
204 rss = self.req.external_resource('RSS_LOGO') |
199 self.w(u'<a href="%s"><img src="%s" border="0" /></a>\n' % (url, rss)) |
205 self.w(u'<a href="%s"><img src="%s" border="0" /></a>\n' % (url, rss)) |
200 |
|
201 |
206 |
202 ## warning("schemabox ne marche plus pour le moment") |
207 ## warning("schemabox ne marche plus pour le moment") |
203 ## class SchemaBox(BoxTemplate): |
208 ## class SchemaBox(BoxTemplate): |
204 ## """display a box containing link to list of entities by type""" |
209 ## """display a box containing link to list of entities by type""" |
205 ## id = 'schema_box' |
210 ## id = 'schema_box' |