Error extract_sqlite_models.py

19 views
Skip to first unread message

Rafael Acorsi

unread,
Feb 13, 2014, 1:01:48 PM2/13/14
to web2py-d...@googlegroups.com
Hello friends, I found a problem on web2py lib / scripts / extract_sqlite_models.py, in line 86, where a regex is created regex hit = re.search(r'"(\S+)"\s+(\w+(\(\S+\))?),?( .*)?', line), regex expects to find a value between " " double quotes, however in some cases the quotation marks are not sent in this case recommend changing the regex to hit = re.search(r'"?(\S+)"?\s+(\w+(\(\S+\))?),?( .*)?', line.lstrip()), where the? (question mark) in case it solves the quotes. 
Hope this helps and thanks to everyone.
Reply all
Reply to author
Forward
0 new messages