# HG changeset patch
# User Nicolas Chauvat <nicolas.chauvat@logilab.fr>
# Date 1257334789 -3600
#      Wed Nov 04 12:39:49 2009 +0100
# Node ID 5bd23a419f0622954783d088d38c5dc260650c59
# Parent  a6692493e5c67fbc2dca3c2398942f8f762e4d4b
[urls] add url /blog/<eid>/blogentries

diff --git a/views/urlpublishing.py b/views/urlpublishing.py
--- a/views/urlpublishing.py
+++ b/views/urlpublishing.py
@@ -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 '