On Wed, Feb 25, 2009 at 8:35 AM, percious <[email protected]> wrote:
>
>
>> Whilst accessing the quickstarted project's 'Admin' interface there's
>> nowhere to
>> enter a user's password. Is this by design?
>
>
> This _is_ by design.  Currently catwalk does not handle well the
> encoding of the passwords, and this functionality will require a bit
> of coding which is slated-for, but not currently active.  When
> tgext.profile is completed, this functionality will exist.
>

If you need that functionality you can switch to alternative admin
interface: Rum

easy_install tgrum

Follow this howto:
http://docs.python-rum.org/tip/user/deploy.html#running-rum-inside-turbogears-2

aka. just add these items in your root.py

#TGRUM Admin interface
from tg import config
from tgrum import RumAlchemyController

# This is the predicate that we'll use to secure the Rum app
is_manager = predicates.has_permission(
    'manage',
    msg=_('Only for people with the "manage" permission')
)


class RootController(BaseController):
    #admin = Catwalk(model, DBSession)
    admin = RumAlchemyController(
        model,
        is_manager,
        template_path=config['paths']['templates'][0],
        # Since this TG's master template will render it
        render_flash=False,
        )

Lucas

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" 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-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to