uniformizing avoid errors cubicweb-blog-version-1.9.0
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 12 Oct 2010 19:09:18 +0200
changeset 254 7c2872c36ee2
parent 253 9924ebbdf44d
child 255 133ed70ae920
uniformizing avoid errors
views/urlpublishing.py
--- a/views/urlpublishing.py	Tue Oct 12 19:04:30 2010 +0200
+++ b/views/urlpublishing.py	Tue Oct 12 19:09:18 2010 +0200
@@ -11,7 +11,7 @@
               )),
         (rgx('/(micro)?blog/([0-9]+)/blogentries/([a-z_]+)'),
          dict(rql='Any B,BD ORDERBY BD DESC WHERE B creation_date BD, B entry_of BL, BL eid %(eid)s, '
-              'X created_by U, U login "%(user)s"' % {'eid': r'\2', 'user': r'\3'},
+              'B created_by U, U login "%(user)s"' % {'eid': r'\2', 'user': r'\3'},
               user=r'\2')),
         (rgx('/(micro)?blog/([0-9]+)/blogentries/([0-9]{4})'),
          dict(rql='Any B,BD ORDERBY BD DESC WHERE B creation_date BD, B entry_of BL, BL eid %(eid)s'
@@ -24,10 +24,10 @@
 
         # XXX use or kill
         (rgx('/blogentry/([a-z_]+)'),
-         dict(rql='Any X ORDERBY CD DESC WHERE X is BlogEntry, X creation_date CD, X created_by U, U login "%(user)s"' % {'user': r'\1'},
+         dict(rql='Any B,BD ORDERBY BD DESC WHERE B is BlogEntry, B creation_date BD, B created_by U, U login "%(user)s"' % {'user': r'\1'},
               user = r'\1')),
         (rgx('/blogentry/([a-z_]+)\.rss'),
-         dict(rql='Any X ORDERBY CD DESC LIMIT 20 WHERE X is BlogEntry, X creation_date CD, X created_by U, U login "%(user)s"' % {'user': r'\1'}, vid='rss')),
+         dict(rql='Any B,BD ORDERBY BD DESC LIMIT 20 WHERE B is BlogEntry, B creation_date BD, B created_by U, U login "%(user)s"' % {'user': r'\1'}, vid='rss')),
 
 
         (rgx('/blogentries/([0-9]{4})'),