Have you enabled the identity plugin in dev.cfg (or app.cfg or
prod,cfg)?
The identity model is ok?
Where are you calling identity.current?

Michele

On 31 Mar, 18:48, airportyh <[EMAIL PROTECTED]> wrote:
> Hi, I am trying to implement a filter that needs to know who is logged
> in. But as soon as I call identity.current I get the an error message:
>
> File "C:\Documents and Settings\airport\My Documents\projects\mproto
> \mproto\managed_customization.py", line 11, in before_main
>     user = identity.current.user
>   File "c:\devtools\python25\lib\site-packages\TurboGears-1.0.4.4-
> py2.5.egg\turbogears\identity\__init__.py", line 69, in __getattr__
>     identity= self.identity()
>   File "c:\devtools\python25\lib\site-packages\TurboGears-1.0.4.4-
> py2.5.egg\turbogears\identity\__init__.py", line 62, in identity
>     raise IdentityManagementNotEnabledException()
> IdentityManagementNotEnabledException: An attempt was made to use a
> facility of the TurboGears Identity Management framework, but identity
> management hasn't been enabled in the config file [via identity.on].
>
> I am guessing it's because the filter is run before the identity runs.
> Could any give me advice on what's the best way to deal with this
> problem? Thank you.
>
> Toby
--~--~---------~--~----~------------~-------~--~----~
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