[urls] add url /blog/<eid>/blogentries
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>
Wed, 04 Nov 2009 12:39:49 +0100
changeset 139 5bd23a419f06
parent 138 a6692493e5c6
child 140 c12f85ec602f
[urls] add url /blog/<eid>/blogentries
views/urlpublishing.py
--- a/views/urlpublishing.py	Wed Nov 04 12:39:32 2009 +0100
+++ b/views/urlpublishing.py	Wed Nov 04 12:39:49 2009 +0100
@@ -13,17 +13,21 @@
         (rgx('/blogentries/([0-9]{4})'),
          dict(rql='Any B ORDERBY CD DESC WHERE B is BlogEntry, B creation_date CD, '
                   'B creation_date >= "%(param)s-01-01", '
-                  'B creation_date <= "%(param)s-12-31"' % {'param': r'\1'}, 
+                  'B creation_date <= "%(param)s-12-31"' % {'param': r'\1'},
               )),
         (rgx('/blogentries/([0-9]{4})/([0-9]{2})'),
          dict(rql='Any B, BD ORDERBY BD DESC '
                   'WHERE B is BlogEntry, B creation_date BD, '
                   'B creation_date >=  "%(year)s/%(month)s/01", B creation_date <= "%(year)s/%(month)s/30"' % {'year': r'\1', 'month': r'\2'},
               )),
+        (rgx('/blog/([0-9]+)/blogentries'),
+         dict(rql='Any B ORDERBY CD DESC WHERE B is BlogEntry, B creation_date CD, '
+                  'B entry_of BL, BL eid %(eid)s' % {'eid': r'\1'},
+              )),
         (rgx('/blog/([0-9]+)/blogentries/([0-9]{4})'),
          dict(rql='Any B ORDERBY CD DESC WHERE B is BlogEntry, B creation_date CD, '
                   'B creation_date >= "%(param)s-01-01", '
-                  'B creation_date <= "%(param)s-12-31", B entry_of BL, BL eid %(eid)s' % {'eid': r'\1', 'param': r'\2'}, 
+                  'B creation_date <= "%(param)s-12-31", B entry_of BL, BL eid %(eid)s' % {'eid': r'\1', 'param': r'\2'},
               )),
         (rgx('/blog/([0-9]+)/blogentries/([0-9]{4})/([0-9]{2})'),
          dict(rql='Any B, BD ORDERBY BD DESC '