[patch] search pattern for '{{extend}}'

0 views
Skip to first unread message

ont.rif

unread,
May 31, 2010, 7:34:27 AM5/31/10
to web2py-users
Pattern in gluon/myregex.py must be compiled with MULTILINE option:

regex_extend = re.compile(\
'^\s*(?P<all>\{\{\s*extend\s+[\'"](?P<name>[^\'"]+)[\'"]\s*\}\})',
re.MULTILINE )

When {{extend '####'}} not in first line of file it doesn't be shown
in admin page.
Reply all
Reply to author
Forward
0 new messages