Re: [web2py] Re: [ANN] Started development on web2admin

2012-10-12 Thread rif
Thank you Ovidio. Do you mean like auth.enable_record_versioning? Can you 
give more details?

-rif

vineri, 12 octombrie 2012, 00:55:00 UTC+3, Ovidio Marinho a scris:
>
> It really is a great job and I think it definitely will be incorporated as 
> a standard interface for administration. A suggestion is to make a historic 
> recording of data.
>   
>
>
>Ovidio Marinho Falcao Neto
> Web Developer
>  ovid...@gmail.com  
>   ovidio...@itjp.net.br 
>  ITJP - itjp.net.br
>83   8826 9088 - Oi
>83   9334 0266 - Claro
> Brasil
>   
>
>
>
> 2012/9/25 rif >
>
>> I really hope that my code meets your standards and if you find something 
>> you don't like please let me know and I'll fix it.
>>
>> The code is quite small (especially if the static folder is merged with 
>> the welcome app, I just extended the main layout).
>>
>> Any functionality requests are welcomed for the 1.1 release.
>>
>> -rif
>>
>> marți, 25 septembrie 2012, 15:22:06 UTC+3, Massimo Di Pierro a scris:
>>
>>> Let me add... appadmin was never developed to be a production tool. 
>>> Something better like web2admin is very much welcome. I will review and we 
>>> will discuss on this list whether to replace appadmin.
>>>
>>> Some of the issues to be considered are:
>>> - functionality
>>> - bloat of the welcome app
>>>
>>>
>>>
>>> On Tuesday, 25 September 2012 07:19:51 UTC-5, Massimo Di Pierro wrote:

 No but it not excluded. I did not have time to review it in detail.

 On Tuesday, 25 September 2012 05:29:18 UTC-5, Alec Taylor wrote:
>
> Just a quick question, is your goal to eventually replace appadmin 
> with this?
>
> :)
>
> On Tue, Sep 25, 2012 at 8:24 PM, rif  wrote:
>
>> Added django like filters to web2admin.
>>
>> I will stop adding new features for a while and declare the current 
>> build as beta. Please test it and report issues on 
>> github
>> .
>>
>> Currently the GAE is not supported due to some dal issues.
>>
>> Please test,
>> -rif
>>
>> marți, 18 septembrie 2012, 14:37:57 UTC+3, rif a scris:
>>
>>> Lots of new customization options and features. Check it out and 
>>> please report bugs.
>>>
>>> -rif
>>>
>>> duminică, 16 septembrie 2012, 13:31:55 UTC+3, rif a scris:

 Check out the new global search, feedback most welcomed.

 Features still to come:

- Custom Links
- Custom Left join


 -rif

 sâmbătă, 15 septembrie 2012, 15:38:14 UTC+3, rif a scris:
>
> I just thought that one might want to use the manager (without 
> prefix) role for a different propose so I was just playing safe. I 
> agree 
> about namespace pollution.
>
> We just need more opinions on this matter (Is it safe to just use 
> manager role or general read/write/etc permissions?). And if we reach 
> a 
> conclusion I am happy to change.
>
> Also the the plugin_web2admin->plugin_admin is OK, especially if 
> it will become official :)
>
> To others: please give feedback on this.
>
> -rif
>
> sâmbătă, 15 septembrie 2012, 15:25:27 UTC+3, Alan Etkin a scris:
>>
>> Shouldn't this be called plugin_admin or similar (following the 
>> plugin_wiki fashion)?
>>
>> Does w2x_etc naming use any plugin convention?. For instance, in 
>> Pyodel (also a plugin) I rely in an application manager role 
>> (without a 
>> prefix). Maybe we can adopt a standard naming convention for plugin 
>> roles. 
>> Also, I think that roles with prefixes somehow polute the group 
>> space.
>>
>> El lunes, 10 de septiembre de 2012 10:49:35 UTC-3, rif escribió:
>>>
>>> I started the development of a new django-like admin interface.
>>>
>>> You can find it here: 
>>> https://github.com/rif/**w**eb2admin
>>>  
>>>
>>> It is very basic but still usable because it uses 
>>> SQLFORM.smartgrid.
>>>
>>> I am announcing it early because I need your feedback and 
>>> feature requests so that I can find out if grid will be able to 
>>> support all 
>>> the desired features.
>>>
>>> For quick start you can create a w2a_root group and add your 
>>> user to that group.
>>>
>>> -rif
>>>
>>  -- 
>>  
>>  
>>  
>>
>
>  -- 
>>  
>>  
>>  
>>
>
>

-- 





Re: [web2py] Re: [ANN] Started development on web2admin

2012-10-11 Thread Ovidio Marinho
It really is a great job and I think it definitely will be incorporated as
a standard interface for administration. A suggestion is to make a historic
recording of data.



   Ovidio Marinho Falcao Neto
Web Developer
 ovidio...@gmail.com
  ovidiomari...@itjp.net.br
 ITJP - itjp.net.br
   83   8826 9088 - Oi
   83   9334 0266 - Claro
Brasil




2012/9/25 rif 

> I really hope that my code meets your standards and if you find something
> you don't like please let me know and I'll fix it.
>
> The code is quite small (especially if the static folder is merged with
> the welcome app, I just extended the main layout).
>
> Any functionality requests are welcomed for the 1.1 release.
>
> -rif
>
> marți, 25 septembrie 2012, 15:22:06 UTC+3, Massimo Di Pierro a scris:
>
>> Let me add... appadmin was never developed to be a production tool.
>> Something better like web2admin is very much welcome. I will review and we
>> will discuss on this list whether to replace appadmin.
>>
>> Some of the issues to be considered are:
>> - functionality
>> - bloat of the welcome app
>>
>>
>>
>> On Tuesday, 25 September 2012 07:19:51 UTC-5, Massimo Di Pierro wrote:
>>>
>>> No but it not excluded. I did not have time to review it in detail.
>>>
>>> On Tuesday, 25 September 2012 05:29:18 UTC-5, Alec Taylor wrote:

 Just a quick question, is your goal to eventually replace appadmin with
 this?

 :)

 On Tue, Sep 25, 2012 at 8:24 PM, rif  wrote:

> Added django like filters to web2admin.
>
> I will stop adding new features for a while and declare the current
> build as beta. Please test it and report issues on 
> github
> .
>
> Currently the GAE is not supported due to some dal issues.
>
> Please test,
> -rif
>
> marți, 18 septembrie 2012, 14:37:57 UTC+3, rif a scris:
>
>> Lots of new customization options and features. Check it out and
>> please report bugs.
>>
>> -rif
>>
>> duminică, 16 septembrie 2012, 13:31:55 UTC+3, rif a scris:
>>>
>>> Check out the new global search, feedback most welcomed.
>>>
>>> Features still to come:
>>>
>>>- Custom Links
>>>- Custom Left join
>>>
>>>
>>> -rif
>>>
>>> sâmbătă, 15 septembrie 2012, 15:38:14 UTC+3, rif a scris:

 I just thought that one might want to use the manager (without
 prefix) role for a different propose so I was just playing safe. I 
 agree
 about namespace pollution.

 We just need more opinions on this matter (Is it safe to just use
 manager role or general read/write/etc permissions?). And if we reach a
 conclusion I am happy to change.

 Also the the plugin_web2admin->plugin_admin is OK, especially if it
 will become official :)

 To others: please give feedback on this.

 -rif

 sâmbătă, 15 septembrie 2012, 15:25:27 UTC+3, Alan Etkin a scris:
>
> Shouldn't this be called plugin_admin or similar (following the
> plugin_wiki fashion)?
>
> Does w2x_etc naming use any plugin convention?. For instance, in
> Pyodel (also a plugin) I rely in an application manager role (without 
> a
> prefix). Maybe we can adopt a standard naming convention for plugin 
> roles.
> Also, I think that roles with prefixes somehow polute the group space.
>
> El lunes, 10 de septiembre de 2012 10:49:35 UTC-3, rif escribió:
>>
>> I started the development of a new django-like admin interface.
>>
>> You can find it here: 
>> https://github.com/rif/**w**eb2admin
>>
>>
>> It is very basic but still usable because it uses
>> SQLFORM.smartgrid.
>>
>> I am announcing it early because I need your feedback and feature
>> requests so that I can find out if grid will be able to support all 
>> the
>> desired features.
>>
>> For quick start you can create a w2a_root group and add your user
>> to that group.
>>
>> -rif
>>
>  --
>
>
>
>

  --
>
>
>
>

-- 





Re: [web2py] Re: [ANN] Started development on web2admin

2012-09-25 Thread rif
I really hope that my code meets your standards and if you find something 
you don't like please let me know and I'll fix it.

The code is quite small (especially if the static folder is merged with the 
welcome app, I just extended the main layout).

Any functionality requests are welcomed for the 1.1 release.

-rif

marți, 25 septembrie 2012, 15:22:06 UTC+3, Massimo Di Pierro a scris:
>
> Let me add... appadmin was never developed to be a production tool. 
> Something better like web2admin is very much welcome. I will review and we 
> will discuss on this list whether to replace appadmin.
>
> Some of the issues to be considered are:
> - functionality
> - bloat of the welcome app
>
>
>
> On Tuesday, 25 September 2012 07:19:51 UTC-5, Massimo Di Pierro wrote:
>>
>> No but it not excluded. I did not have time to review it in detail.
>>
>> On Tuesday, 25 September 2012 05:29:18 UTC-5, Alec Taylor wrote:
>>>
>>> Just a quick question, is your goal to eventually replace appadmin with 
>>> this?
>>>
>>> :)
>>>
>>> On Tue, Sep 25, 2012 at 8:24 PM, rif  wrote:
>>>
 Added django like filters to web2admin.

 I will stop adding new features for a while and declare the current 
 build as beta. Please test it and report issues on 
 github
 .

 Currently the GAE is not supported due to some dal issues.

 Please test,
 -rif

 marți, 18 septembrie 2012, 14:37:57 UTC+3, rif a scris:

> Lots of new customization options and features. Check it out and 
> please report bugs.
>
> -rif
>
> duminică, 16 septembrie 2012, 13:31:55 UTC+3, rif a scris:
>>
>> Check out the new global search, feedback most welcomed.
>>
>> Features still to come:
>>
>>- Custom Links
>>- Custom Left join
>>
>>
>> -rif
>>
>> sâmbătă, 15 septembrie 2012, 15:38:14 UTC+3, rif a scris:
>>>
>>> I just thought that one might want to use the manager (without 
>>> prefix) role for a different propose so I was just playing safe. I 
>>> agree 
>>> about namespace pollution.
>>>
>>> We just need more opinions on this matter (Is it safe to just use 
>>> manager role or general read/write/etc permissions?). And if we reach a 
>>> conclusion I am happy to change.
>>>
>>> Also the the plugin_web2admin->plugin_admin is OK, especially if it 
>>> will become official :)
>>>
>>> To others: please give feedback on this.
>>>
>>> -rif
>>>
>>> sâmbătă, 15 septembrie 2012, 15:25:27 UTC+3, Alan Etkin a scris:

 Shouldn't this be called plugin_admin or similar (following the 
 plugin_wiki fashion)?

 Does w2x_etc naming use any plugin convention?. For instance, in 
 Pyodel (also a plugin) I rely in an application manager role (without 
 a 
 prefix). Maybe we can adopt a standard naming convention for plugin 
 roles. 
 Also, I think that roles with prefixes somehow polute the group space.

 El lunes, 10 de septiembre de 2012 10:49:35 UTC-3, rif escribió:
>
> I started the development of a new django-like admin interface.
>
> You can find it here: 
> https://github.com/rif/**web2admin
>  
>
> It is very basic but still usable because it uses 
> SQLFORM.smartgrid.
>
> I am announcing it early because I need your feedback and feature 
> requests so that I can find out if grid will be able to support all 
> the 
> desired features.
>
> For quick start you can create a w2a_root group and add your user 
> to that group.
>
> -rif
>
  -- 
  
  
  

>>>
>>>

-- 





Re: [web2py] Re: [ANN] Started development on web2admin

2012-09-25 Thread Massimo Di Pierro
Let me add... appadmin was never developed to be a production tool. 
Something better like web2admin is very much welcome. I will review and we 
will discuss on this list whether to replace appadmin.

Some of the issues to be considered are:
- functionality
- bloat of the welcome app



On Tuesday, 25 September 2012 07:19:51 UTC-5, Massimo Di Pierro wrote:
>
> No but it not excluded. I did not have time to review it in detail.
>
> On Tuesday, 25 September 2012 05:29:18 UTC-5, Alec Taylor wrote:
>>
>> Just a quick question, is your goal to eventually replace appadmin with 
>> this?
>>
>> :)
>>
>> On Tue, Sep 25, 2012 at 8:24 PM, rif  wrote:
>>
>>> Added django like filters to web2admin.
>>>
>>> I will stop adding new features for a while and declare the current 
>>> build as beta. Please test it and report issues on 
>>> github
>>> .
>>>
>>> Currently the GAE is not supported due to some dal issues.
>>>
>>> Please test,
>>> -rif
>>>
>>> marți, 18 septembrie 2012, 14:37:57 UTC+3, rif a scris:
>>>
 Lots of new customization options and features. Check it out and please 
 report bugs.

 -rif

 duminică, 16 septembrie 2012, 13:31:55 UTC+3, rif a scris:
>
> Check out the new global search, feedback most welcomed.
>
> Features still to come:
>
>- Custom Links
>- Custom Left join
>
>
> -rif
>
> sâmbătă, 15 septembrie 2012, 15:38:14 UTC+3, rif a scris:
>>
>> I just thought that one might want to use the manager (without 
>> prefix) role for a different propose so I was just playing safe. I agree 
>> about namespace pollution.
>>
>> We just need more opinions on this matter (Is it safe to just use 
>> manager role or general read/write/etc permissions?). And if we reach a 
>> conclusion I am happy to change.
>>
>> Also the the plugin_web2admin->plugin_admin is OK, especially if it 
>> will become official :)
>>
>> To others: please give feedback on this.
>>
>> -rif
>>
>> sâmbătă, 15 septembrie 2012, 15:25:27 UTC+3, Alan Etkin a scris:
>>>
>>> Shouldn't this be called plugin_admin or similar (following the 
>>> plugin_wiki fashion)?
>>>
>>> Does w2x_etc naming use any plugin convention?. For instance, in 
>>> Pyodel (also a plugin) I rely in an application manager role (without a 
>>> prefix). Maybe we can adopt a standard naming convention for plugin 
>>> roles. 
>>> Also, I think that roles with prefixes somehow polute the group space.
>>>
>>> El lunes, 10 de septiembre de 2012 10:49:35 UTC-3, rif escribió:

 I started the development of a new django-like admin interface.

 You can find it here: 
 https://github.com/rif/**web2admin
  

 It is very basic but still usable because it uses SQLFORM.smartgrid.

 I am announcing it early because I need your feedback and feature 
 requests so that I can find out if grid will be able to support all 
 the 
 desired features.

 For quick start you can create a w2a_root group and add your user 
 to that group.

 -rif

>>>  -- 
>>>  
>>>  
>>>  
>>>
>>
>>

-- 





Re: [web2py] Re: [ANN] Started development on web2admin

2012-09-25 Thread Massimo Di Pierro
No but it not excluded. I did not have time to review it in detail.

On Tuesday, 25 September 2012 05:29:18 UTC-5, Alec Taylor wrote:
>
> Just a quick question, is your goal to eventually replace appadmin with 
> this?
>
> :)
>
> On Tue, Sep 25, 2012 at 8:24 PM, rif >wrote:
>
>> Added django like filters to web2admin.
>>
>> I will stop adding new features for a while and declare the current build 
>> as beta. Please test it and report issues on 
>> github
>> .
>>
>> Currently the GAE is not supported due to some dal issues.
>>
>> Please test,
>> -rif
>>
>> marți, 18 septembrie 2012, 14:37:57 UTC+3, rif a scris:
>>
>>> Lots of new customization options and features. Check it out and please 
>>> report bugs.
>>>
>>> -rif
>>>
>>> duminică, 16 septembrie 2012, 13:31:55 UTC+3, rif a scris:

 Check out the new global search, feedback most welcomed.

 Features still to come:

- Custom Links
- Custom Left join


 -rif

 sâmbătă, 15 septembrie 2012, 15:38:14 UTC+3, rif a scris:
>
> I just thought that one might want to use the manager (without prefix) 
> role for a different propose so I was just playing safe. I agree about 
> namespace pollution.
>
> We just need more opinions on this matter (Is it safe to just use 
> manager role or general read/write/etc permissions?). And if we reach a 
> conclusion I am happy to change.
>
> Also the the plugin_web2admin->plugin_admin is OK, especially if it 
> will become official :)
>
> To others: please give feedback on this.
>
> -rif
>
> sâmbătă, 15 septembrie 2012, 15:25:27 UTC+3, Alan Etkin a scris:
>>
>> Shouldn't this be called plugin_admin or similar (following the 
>> plugin_wiki fashion)?
>>
>> Does w2x_etc naming use any plugin convention?. For instance, in 
>> Pyodel (also a plugin) I rely in an application manager role (without a 
>> prefix). Maybe we can adopt a standard naming convention for plugin 
>> roles. 
>> Also, I think that roles with prefixes somehow polute the group space.
>>
>> El lunes, 10 de septiembre de 2012 10:49:35 UTC-3, rif escribió:
>>>
>>> I started the development of a new django-like admin interface.
>>>
>>> You can find it here: 
>>> https://github.com/rif/**web2admin
>>>  
>>>
>>> It is very basic but still usable because it uses SQLFORM.smartgrid.
>>>
>>> I am announcing it early because I need your feedback and feature 
>>> requests so that I can find out if grid will be able to support all the 
>>> desired features.
>>>
>>> For quick start you can create a w2a_root group and add your user to 
>>> that group.
>>>
>>> -rif
>>>
>>  -- 
>>  
>>  
>>  
>>
>
>

-- 





Re: [web2py] Re: [ANN] Started development on web2admin

2012-09-25 Thread Alec Taylor
Just a quick question, is your goal to eventually replace appadmin with
this?

:)

On Tue, Sep 25, 2012 at 8:24 PM, rif  wrote:

> Added django like filters to web2admin.
>
> I will stop adding new features for a while and declare the current build
> as beta. Please test it and report issues on 
> github
> .
>
> Currently the GAE is not supported due to some dal issues.
>
> Please test,
> -rif
>
> marți, 18 septembrie 2012, 14:37:57 UTC+3, rif a scris:
>
>> Lots of new customization options and features. Check it out and please
>> report bugs.
>>
>> -rif
>>
>> duminică, 16 septembrie 2012, 13:31:55 UTC+3, rif a scris:
>>>
>>> Check out the new global search, feedback most welcomed.
>>>
>>> Features still to come:
>>>
>>>- Custom Links
>>>- Custom Left join
>>>
>>>
>>> -rif
>>>
>>> sâmbătă, 15 septembrie 2012, 15:38:14 UTC+3, rif a scris:

 I just thought that one might want to use the manager (without prefix)
 role for a different propose so I was just playing safe. I agree about
 namespace pollution.

 We just need more opinions on this matter (Is it safe to just use
 manager role or general read/write/etc permissions?). And if we reach a
 conclusion I am happy to change.

 Also the the plugin_web2admin->plugin_admin is OK, especially if it
 will become official :)

 To others: please give feedback on this.

 -rif

 sâmbătă, 15 septembrie 2012, 15:25:27 UTC+3, Alan Etkin a scris:
>
> Shouldn't this be called plugin_admin or similar (following the
> plugin_wiki fashion)?
>
> Does w2x_etc naming use any plugin convention?. For instance, in
> Pyodel (also a plugin) I rely in an application manager role (without a
> prefix). Maybe we can adopt a standard naming convention for plugin roles.
> Also, I think that roles with prefixes somehow polute the group space.
>
> El lunes, 10 de septiembre de 2012 10:49:35 UTC-3, rif escribió:
>>
>> I started the development of a new django-like admin interface.
>>
>> You can find it here: 
>> https://github.com/rif/**web2admin
>>
>>
>> It is very basic but still usable because it uses SQLFORM.smartgrid.
>>
>> I am announcing it early because I need your feedback and feature
>> requests so that I can find out if grid will be able to support all the
>> desired features.
>>
>> For quick start you can create a w2a_root group and add your user to
>> that group.
>>
>> -rif
>>
>  --
>
>
>
>

-- 





Re: [web2py] Re: [ANN] Started development on web2admin

2012-09-15 Thread rif
I bow before what you showed in modules/html.py, yet I preferred a much 
simpler solution even if it is not reusable (hopefully it will give a 
chance to less-python-gurus like me to understand :).

I will focus on the rest of the suggestions now.

-rif

sâmbătă, 15 septembrie 2012, 13:31:52 UTC+3, rochacbruno a scris:
>
> Your call, also if you prefer to take the modal logic from modules/server 
> side DOM on to HTML template it is easy to change.
>
> I just created as Server side DOM because it can be reused.
>

-- 





Re: [web2py] Re: [ANN] Started development on web2admin

2012-09-15 Thread Bruno Rocha
Your call, also if you prefer to take the modal logic from modules/server
side DOM on to HTML template it is easy to change.

I just created as Server side DOM because it can be reused.

-- 





Re: [web2py] Re: [ANN] Started development on web2admin

2012-09-15 Thread rif
You can pull from my devel branch for multi-db support. Please give me 
feedback.

I am merging your pull request. An I think I will use ajax.

-rif

sâmbătă, 15 septembrie 2012, 13:11:14 UTC+3, rochacbruno a scris:
>
> I did the modal part, now need to do the shortcuts.
>
> also as you are working on mult-db support, the code may change a little.
>
> look:
>
> [image: Inline image 1]
>
> [image: Inline image 2]
>

-- 





Re: [web2py] Re: [ANN] Started development on web2admin

2012-09-15 Thread Bruno Rocha
I did the modal part, now need to do the shortcuts.

also as you are working on mult-db support, the code may change a little.

look:

[image: Inline image 1]

[image: Inline image 2]

-- 





Re: [web2py] Re: [ANN] Started development on web2admin

2012-09-15 Thread Bruno Rocha
I did that, a modal for field details... I did a pull-request with this,
maybe you can improve the design.

-- 





Re: [web2py] Re: [ANN] Started development on web2admin

2012-09-15 Thread rif
I have added initial multi-db support and now I am working on your 
suggestion. It should be ready in a couple of hours. I will let you know.

-rif

sâmbătă, 15 septembrie 2012, 02:33:49 UTC+3, rochacbruno a scris:
>
> @rif I have some suggestion
>
> Screenshot: http://i.imgur.com/3t2kv.png
>
> For the suggested [fields] buttom it can be done with a modal or popup, it 
> can loads a   inside the 
> popup or modal, or if prefered it can retrieve this info via ajax.
>
> To retrieve the info is easy,
>
> for field in table.fields:
> print name.name, name.type, name.length, name.comment, name.label, 
> name.compute, name.represent, name.requires, name.required, name.unique, 
> name.readable, name.writable
> *first_name string 128 None First name None None 
>  False False True True*
>  
> So that info will be very important for developers and admins, also the 
> buttom can show up only if admin is logged in.
>
> Let me know if you need some help, I am using this and I really think it 
> can be a replacement for appadmin.
>

-- 





Re: [web2py] Re: [ANN] Started development on web2admin

2012-09-14 Thread Bruno Rocha
@rif I have some suggestion

Screenshot: http://i.imgur.com/3t2kv.png

For the suggested [fields] buttom it can be done with a modal or popup, it
can loads a   inside the
popup or modal, or if prefered it can retrieve this info via ajax.

To retrieve the info is easy,

for field in table.fields:
print name.name, name.type, name.length, name.comment, name.label,
name.compute, name.represent, name.requires, name.required, name.unique,
name.readable, name.writable
*first_name string 128 None First name None None
 False False True True*

So that info will be very important for developers and admins, also the
buttom can show up only if admin is logged in.

Let me know if you need some help, I am using this and I really think it
can be a replacement for appadmin.

-- 





Re: [web2py] Re: [ANN] Started development on web2admin

2012-09-14 Thread rif
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.
>
>
>

-- 





Re: [web2py] Re: [ANN] Started development on web2admin

2012-09-14 Thread Bruno Rocha
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.

--