[web2py] web2py.test replacement

2018-10-12 Thread Bryan Chance
Does anyone know of a web2py.test replacement? The link I see everywhere is for what looks to be a deleted repo: https://github.com/viniciusban/web2py.test -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.go

Re: [web2py] Re: routes.py Python 3 regex error

2018-09-28 Thread Bryan Chance
Added those, but the underlying issue is still there. On Fri, Sep 28, 2018 at 12:32 PM Leonel Câmara wrote: > You probably need to use raw strings in routes_in too if that \\g is > indeed just \g > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://gith

Re: [web2py] routes.py Python 3 regex error

2018-09-28 Thread Bryan Chance
one correction, the \\g's are actually \g On Fri, Sep 28, 2018 at 12:20 PM Bryan Chance wrote: > I'm working to switch my web2py application to Python 3. However, I now > get errors when loading due to my routes.py: > > File "/usr/lib/python3.6/sre_parse.py",

[web2py] routes.py Python 3 regex error

2018-09-28 Thread Bryan Chance
I'm working to switch my web2py application to Python 3. However, I now get errors when loading due to my routes.py: File "/usr/lib/python3.6/sre_parse.py", line 401, in _escape raise source.error("bad escape %s" % escape, len(escape)) sre_constants.error: bad escape \g at position 35 My

[web2py] Re: Loading Scheduler Configuration On-the-Fly

2018-06-04 Thread Bryan Chance
I believe I might be able to queue the task with application set to the context I want it ran in, and then in db.py set request.vars.client to request.application On Monday, June 4, 2018 at 1:55:42 PM UTC-5, Bryan Chance wrote: > > So I'm working to consolidate severall web2py apps

[web2py] Loading Scheduler Configuration On-the-Fly

2018-06-04 Thread Bryan Chance
So I'm working to consolidate severall web2py apps that share ~85% of their code. They each have their own configurations, databases, etc. I accomplish this by using routes.py to map myurl.com/client_name to myurl.com/consolidated_app?client_name=client_name Then request.vars.client_name allows

Re: [web2py] How to know if my code is execute by a scheduler ?

2018-05-30 Thread Bryan Chance
if request.is_scheduler: db.commit() source: https://groups.google.com/forum/#!topic/web2py/ZDoDGH7DNjY On Wed, May 30, 2018 at 9:53 AM, Yoel Benitez Fonseca wrote: > I have a code (insert or modify some values on tables) with can be called > both from a scheduler task and the normal reques