[web2py] web2py session timeout

2013-12-05 Thread Samuel Komfi
Goodday, I have an app which redirects to mini sites based on an 'event' argument in the url like so http://0.0.0.0/app/c/login?event=event1(will take you event1 themed page) The problem is when the logged in users session is timed out, the user is returned to http://0.0.0.0/a/c/login?_next=/

[web2py] Define tables related to each other in multiple files

2012-11-30 Thread Samuel Komfi
I have a db_agents model: * * db.define_table('agents', Field('user_id', db.auth_user), Field('event_instance_id', db.event_instance), # this is the line giving the error Field('code') ) db.agents.user_id.requires = IS_IN_DB(db, db.auth_user.id, '%(username)s') db.agents.event_instan

[web2py] Foreign Keys in DAL, in different files

2012-11-30 Thread Samuel Komfi
I keep getting this error: *'DAL' object has no attribute 'event_instance'* it points to my db_agents file as the culprit on this line: ('event_instance_id', db.event_instance) However if I move the definition of the event_instance table to that db_agents model file the error disappears, but

[web2py] Dal Foreign keys

2012-11-30 Thread Samuel Komfi
I keep getting this error: *'DAL' object has no attribute 'event_instance'* it points to my db_agents file as the culprit on this line: ('event_instance_id', db.event_instance) However if I move the definition of the event_instance table to that db_agents model file the error disappears, but