> and to load the database use:
>
> def loaddb():
>     web.database(**web.config.db_parameters)
> app.add_processor(web.loadhook(loaddb))

You don't need this now. New db api has been implemented.

db = web.database(dbn='postgres', db=...)
db.select
db.query
...


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" 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/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to