Lee McFadden <[EMAIL PROTECTED]> writes:

> As it stands it seems that this isn't possible without having two
> seperate apps and a front end to proxy the app depending on which
> section you're going to.  Or am I mistaken?

How about using the default identity manager for visitors and "creating your
own identity model"
(http://nerd.newburyportion.com/2005/11/creating-your-own-identity-model) for
LDAP users?

Then you could say something like:

================================================================================
from turbogears import identity
from custom import custom_identity

if 'admin' in custom_identity.current.ldap_groups:
    <is an admin>
elif 'visitor' in identity.current.groups:
    <is a visitor>
================================================================================

But I'm just guessing here.  I've never done that -- yet.

It looks a "little" more complex but tying it with LDAP isn't all that hard
(at least, codes where I used Python + LDAP weren't hard to write).

-- 
Jorge Godoy      <[EMAIL PROTECTED]>

Reply via email to