>
> 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
--
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
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
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
4 matches
Mail list logo