Skip to content
Snippets Groups Projects
Commit 5bd23a419f06 authored by Nicolas Chauvat's avatar Nicolas Chauvat
Browse files

[urls] add url /blog/<eid>/blogentries

parent a6692493e5c6
No related branches found
No related tags found
No related merge requests found
...@@ -13,10 +13,10 @@ ...@@ -13,10 +13,10 @@
(rgx('/blogentries/([0-9]{4})'), (rgx('/blogentries/([0-9]{4})'),
dict(rql='Any B ORDERBY CD DESC WHERE B is BlogEntry, B creation_date CD, ' 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-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})'), (rgx('/blogentries/([0-9]{4})/([0-9]{2})'),
dict(rql='Any B, BD ORDERBY BD DESC ' dict(rql='Any B, BD ORDERBY BD DESC '
'WHERE B is BlogEntry, B creation_date BD, ' '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'}, 'B creation_date >= "%(year)s/%(month)s/01", B creation_date <= "%(year)s/%(month)s/30"' % {'year': r'\1', 'month': r'\2'},
)), )),
...@@ -17,9 +17,13 @@ ...@@ -17,9 +17,13 @@
)), )),
(rgx('/blogentries/([0-9]{4})/([0-9]{2})'), (rgx('/blogentries/([0-9]{4})/([0-9]{2})'),
dict(rql='Any B, BD ORDERBY BD DESC ' dict(rql='Any B, BD ORDERBY BD DESC '
'WHERE B is BlogEntry, B creation_date BD, ' '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'}, '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})'), (rgx('/blog/([0-9]+)/blogentries/([0-9]{4})'),
dict(rql='Any B ORDERBY CD DESC WHERE B is BlogEntry, B creation_date CD, ' 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-01-01", '
...@@ -23,7 +27,7 @@ ...@@ -23,7 +27,7 @@
(rgx('/blog/([0-9]+)/blogentries/([0-9]{4})'), (rgx('/blog/([0-9]+)/blogentries/([0-9]{4})'),
dict(rql='Any B ORDERBY CD DESC WHERE B is BlogEntry, B creation_date CD, ' 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-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})'), (rgx('/blog/([0-9]+)/blogentries/([0-9]{4})/([0-9]{2})'),
dict(rql='Any B, BD ORDERBY BD DESC ' dict(rql='Any B, BD ORDERBY BD DESC '
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment