doc/book/en/devweb/views/urlpublish.rst
changeset 8032 bcb87336c7d2
parent 5394 105011657405
child 8039 1fe90d4ec307
equal deleted inserted replaced
8030:552d85fcb587 8032:bcb87336c7d2
    50         rules = [
    50         rules = [
    51             (rgx('/blogentry/([a-z_]+)\.rss'),
    51             (rgx('/blogentry/([a-z_]+)\.rss'),
    52              dict(rql=('Any X ORDERBY CD DESC LIMIT 20 WHERE X is BlogEntry,'
    52              dict(rql=('Any X ORDERBY CD DESC LIMIT 20 WHERE X is BlogEntry,'
    53                        'X creation_date CD, X created_by U, '
    53                        'X creation_date CD, X created_by U, '
    54                        'U login "%(user)s"'
    54                        'U login "%(user)s"'
    55                        % {'user': r'\1'}, vid='rss'))),
    55                        % {'user': r'\1'}), vid='rss'))
    56             ]
    56             ]
    57 
    57 
    58 When a url matches the regular expression, the view with the __regid__
    58 When a url matches the regular expression, the view with the __regid__
    59 `rss` which match the result set is displayed.
    59 `rss` which match the result set is displayed.
    60 
    60