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
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
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
(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
>>
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'
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
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
'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
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
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
10 matches
Mail list logo