Hello
My problem is that my app has to go to specific database on postgres to
check for users.
you can visit my app on http://portal.iurnik.si/
You can see that the user select a value from popup and then the app goes
to a specific database to read data.
After that I want to create a login form.
I created it but,.....
I created a separate model users.py with this code
database = now it is hardcoded so it works all the time
baza = DAL('postgres://postgres:postgres@localhost/'+ database,
migrate=True)
auth = Auth(baza, hmac_key=Auth.get_or_create_key())
auth.settings.controller="user"
auth.define_tables()
But what I would like to do is read the database name from url and the
right url comes only after user selects the right value from popup. And
that is why the app chashes if I don't hard code the db name. Logically.
What do you suggest? also after logout user would stay on the second page
not to go to default page (where do I set that parameter)
Thank you
--