[web2py] routes onerror not working for xhr

2017-02-09 Thread MDSIII
I have tried implementing routes_onerror in routes.py like this: routes_onerror = [ (r'welcome/500', r'/welcome/default/on500'), (r'welcome/400', r'/welcome/default/on400') ] and added these functions in default.py controller: def raise500(): raise ValueError('random internal error

[web2py] Re: appadmin/ccache and dict in cache.disk

2016-10-07 Thread MDSIII
quot; that happen before it is written to cache. On Friday, October 7, 2016 at 4:12:22 AM UTC-7, Niphlod wrote: > > how do you store a dict in cache.disk ? > > On Friday, October 7, 2016 at 8:59:34 AM UTC+2, MDSIII wrote: >> >> When I store a dict in cache.disk and the

[web2py] appadmin/ccache and dict in cache.disk

2016-10-06 Thread MDSIII
When I store a dict in cache.disk and then request /appadmin/ccache I'm getting a key error: Traceback (most recent call last): File "C:\repos\TCL\web2py\gluon\restricted.py", line 227, in restricted exec ccode in environment File "C:\repos\TCL\web2py\applications\timecardlynx\controller

[web2py] Re: Slow TTFB debugging with Wing IDE

2016-04-07 Thread MDSIII
(response) > > at the top of your function. > > http://web2py.com/books/default/chapter/29/04/the-core#session > > On Thursday, April 7, 2016 at 8:46:16 PM UTC+2, MDSIII wrote: >> >> Running web2py from the Wing IDE, so using the built-in rocket server, I >>

[web2py] Slow TTFB debugging with Wing IDE

2016-04-07 Thread MDSIII
Running web2py from the Wing IDE, so using the built-in rocket server, I see long Waiting times in Chrome Dev Tools for my ajax requests. I'm getting times in excess of 6 or 8 seconds. This is a single page application that fires off a bunch (7 or 8) ajax requests after the initial page load. I'

[web2py] Versioned url to static resources in admin app

2016-02-20 Thread MDSIII
Recently upgraded to 2.13.4. My application works fine but the views for web2py admin app are generating URLs to static resources with a version in the path. {{=URL('static','js/bootstrap.min.js')}} results in "/admin/static/_2.13.4/js/bootstrap.min.js" instead of "/admin/static/js/bootst

[web2py] Re: DAL database adapter only validates datetime on read.

2015-02-19 Thread MDSIII
Thanks, makes sense. And yeah, validate_and_insert() works as documented. On Wednesday, February 18, 2015 at 12:53:32 PM UTC-8, Niphlod wrote: > > that's pretty much expected: the general rule is that if you want your > fields validated at insert level, you shouldn't use insert() but > validate

[web2py] Re: DAL database adapter only validates datetime on read.

2015-02-18 Thread MDSIII
'myevent', Field('name', 'string'), Field('dt', 'datetime'), Field('good', 'string') ) On Sunday, February 15, 2015 at 12:40:46 PM UTC-8, Niphlod wrote: > > p

[web2py] DAL database adapter only validates datetime on read.

2015-02-13 Thread MDSIII
I'm inserting a row with a value for a datetime type field such as '2015-02-12T14:43:52.113000'. The DAL lets me do the insert but errors in the adapter when I do a select that includes this row/column. I realize the string does not match the datetime.isoformat(' ') that the dbapi adapter expe

[web2py] Re: session casesensitive urls

2011-02-09 Thread MDSIII
Tried this and it seems to fix the problem. One unified session_id cookie. Thanks Massimo. -Max On Feb 8, 11:40 am, Massimo Di Pierro wrote: > Good point. I made the now case insensitive in trunk. Please try. > > Massimo > > On Feb 8, 12:54 pm, connie_codes wrote: > > > > > > > > > It would ap