On Dec 31, 6:30 am, "Lukasz Szybalski" <[email protected]> wrote:
> How do I start catwalk?

After installing TG 2.0 beta 1 you can quickstart a new project and it
will have Catwalk already configured. Any user in a group with the
manage permission (like the default manager user) can go to /admin/ to
access the Catwalk. There is also an 'Admin' entry in the new
horizontal menu bar. To add that to an existing project you need to
add the following to you controllers/root.py :

from catwalk.tg2 import Catwalk

class SecuredCatwalk(Catwalk):
    allow_only = predicates.has_permission('manage',
                            msg=_('Only for people with the "manage"
permission'))

class RootController(BaseController):
    admin = SecuredCatwalk(DBSession, metadata)
    ...

And it just works. There is a bit of confusion as the Catwalk shows
two password fields for the default User class and I also had to
change the password encryption method from salted_sha1 to just sha1,
but it works rather nicely out of the box.

--
Aigars Mahinovs <[email protected]>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to