equal
deleted
inserted
replaced
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): |