[web2py] Re: I do not use cache, but the system cache throws me errors .. : S

2012-12-10 Thread Anthony
> > id_user = (auth.user and auth.user.id) or None Also, note that the above is simply equivalent to auth.user_id (i.e., its value is None if there is no auth.user). Anthony --

[web2py] Re: I do not use cache, but the system cache throws me errors .. : S

2012-12-10 Thread Anthony
plugin_inscripcion_temp_id = request.args[0] Well, somehow request.args[0] is taking on the value "cache" rather than being an integer ID as you expect. Again, can't say how that is happening without seeing the code that generates the URL that calls the planilla function. Note, you can do requ

[web2py] Re: I do not use cache, but the system cache throws me errors .. : S

2012-12-10 Thread www.diazluis.com
def planilla(): id_user = (auth.user and auth.user.id) or None plugin_inscripcion_temp_id = request.args[0] plugin_inscripcion_temp = db.plugin_inscripcion_temp(id=plugin_inscripcion_temp_id, user=id_user) if plugin_inscripcion_temp is None: session.flash = 'Error pro

[web2py] Re: I do not use cache, but the system cache throws me errors .. : S

2012-12-07 Thread Anthony
I don't think the cache system is causing the problem. In this line: plugin_inscripcion_temp = db.plugin_inscripcion_temp(id= plugin_inscripcion_temp_id, user=id_user) the value of either plugin_inscripcion_temp or id_user is 'cache' (i.e., a string literal, not the web2py cache object) rather t