[web2py] cPickle with protocol 2 on a storage object fails

2012-07-18 Thread marius.v.niekerk
When using pickle with protocol 2 pickling a Storage object fails This is caused by the __getattr__ getting called to find the __getinitargs__ and __getnewargs__ methods. They dont exist in the dictionary so consequently they return None. Pickle then calls the None and consequently dies. Imp

[web2py] Change in behaviour of cache

2012-07-17 Thread marius.v.niekerk
I have some code that works as follows @cache('key', 60, cache_model=cache.ram) @cache('key', 60, cache_model=cache.disk) def f() do stuff return dict() I do the dual cache thing since the ram cache is not shared between processes that get spawned by Apache. The recent changes to g

[web2py] Cython and gluon/html.py

2012-07-13 Thread marius.v.niekerk
At present a cython compiled version of html.py is not possible due to http://trac.cython.org/cython_trac/ticket/639 This means that you can't have functions with attributes. in html.py the after the function definition for URL() is closely followed by URL.verify = verifyURL This leads to a

[web2py] Re: Easy question, inserting user input fields into an email message

2012-05-25 Thread marius.v.niekerk
Or even better message="Sender's name: %(your_name)s\nSender's e-mail: %(your_email)s\n\nHello World!..." % request.vars Marius

[web2py] _id for tables without id field

2012-04-05 Thread marius.v.niekerk
Would there be merit in defining _id for a table schema where the _primarykey list contains a single field Doing this seems to allow SQLFORM.grid to behave as desired I have a simple patch that seems to do this. I am not sure how this affects insert performance etc

[web2py] Re: Change in URL args handling

2011-01-28 Thread marius.v.niekerk
I had another problem with url argument handling that came in was "/app/controller/function/arg1\r". The default regex matching ( regex_args.match(request.raw_args( )) for the arguments would return false and then the application would respond with an "invalid request" error. It is not obvious f

[web2py] Re: Unknown Ticket

2011-01-06 Thread marius.v.niekerk
Shouldn't we detect that? Possibly display a message like 'error cannot write to filesystem'? I have been bitten by this one before on a poorly configured shared hosting setup. On Jan 6, 1:28 am, Massimo Di Pierro wrote: > You will not finding anything at tha apache log error. This is a > web2py