Excellent suggestion. dbs will be available in the next version.

-rif

vineri, 14 septembrie 2012, 20:34:16 UTC+3, rochacbruno a scris:
>
> There is Pyodel (learning tool), I dont know about the status of QAStak 
> and PyForum.
>
> @rif what about multiple databases and databases named differently? 
>
> your code expects a "db" object, so I think you can put on the models a 
> config variable for dbs
>
> plugin_web2admin_dbs = [db, other_db, sessions_db, user_db]
>
> So in plugin code you can check
>
> if "plugin_web2admin_dbs" in globals():
>     for db in  plugin_web2admin_dbs:
>         # logic to create navbar menus to change the "db" context.
>
>
>

-- 



Reply via email to