* Diez B. Roggisch <[email protected]> wrote on [05-06-10y 12:25]: > > Am 06.05.2010 um 21:05 schrieb Ryan: > > >Hi, still very new to TG and learning a lot. I was hoping to use the > >AdminController to test my model, and learn more about TG. We are > >trying to wedge an existing SQLAlchemy model from an existing project > >into TG. I thought it would be a quick way to verify everything is > >working. > > > >When I connect to admin I get a flash message: > > Current user must belong to the group "managers" > > > >I see in the docs, you can override AdminController with: > > > >class myAdminController(AdminController): > > allow_only = has_permission('manage') > > > >But I cannot find in the docs what strings has_permission takes. What > >can I put there for: has_permission('all') > > Remove the allow_only - then the controller is unprotected. > > diez
Sorry, but this is not correct. Without the alow_only, the defaults produce the flash message I described above. > > Current user must belong to the group "managers" Thanks though. -Ryan > > -- > You received this message because you are subscribed to the Google Groups > "TurboGears" 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/turbogears?hl=en. -- +-----------------------------+ | [email protected] | | http://www.the-summit.net | +-----------------------------+ -- You received this message because you are subscribed to the Google Groups "TurboGears" 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/turbogears?hl=en.

