Massimo,
> If I understand your problem, this should solve it.
You did not fully understand my problem, my mistake; the domain names
don't contain the id, that was just my lack of imagination. In real
life they read like www.vermeer.eu or www.ou.nl
However, I believe your reply helped me solve my problem. In the
controller, outside any function I have:
com_id=1
session.comname
if session.com_id!=com_id:
com=db(db.com.id==com_id).select(db.com.comname)
session.comname=com[0].comname
and in a second controller:
com_id=2
session.comname
if session.com_id!=com_id:
com=db(db.com.id==com_id).select(db.com.comname)
session.comname=com[0].comname
I tested this:
- exposing the functions in appadmin in random order.
- by changing the controller in the URL in the browser window
- and by bookmarking several pages and visiting them from the
bookmarks.
In all these cases the correct comname was displayed. I hope this
justifies the conclusion that my controllers work. If I am overlooking
anything, please let me know.
Kind regards,
Annet.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---