web/views/urlrewrite.py
changeset 6225 a176e68b7d0d
parent 6175 104453c4ed3e
child 6393 7372100062e8
equal deleted inserted replaced
6182:30de0be8f895 6225:a176e68b7d0d
    22 from cubicweb import typed_eid
    22 from cubicweb import typed_eid
    23 from cubicweb.appobject import AppObject
    23 from cubicweb.appobject import AppObject
    24 
    24 
    25 
    25 
    26 def rgx(pattern, flags=0):
    26 def rgx(pattern, flags=0):
    27     """this is just a convenient shortcout to add the $ sign"""
    27     """this is just a convenient shortcut to add the $ sign"""
    28     return re.compile(pattern+'$', flags)
    28     return re.compile(pattern+'$', flags)
    29 
    29 
    30 class metarewriter(type):
    30 class metarewriter(type):
    31     """auto-extend rules dictionnary"""
    31     """auto-extend rules dictionnary"""
    32     def __new__(mcs, name, bases, classdict):
    32     def __new__(mcs, name, bases, classdict):