If I understand right, then I did the same thing. I quickstarted a
project, but without Identity. I added Identity in manually later (by
copy & pasting from another project I quickstarted *with* Identity).
Mine works fine. Am I right in understanding what you did?
Did you remember to import the identity module in your
controllers.py...?
e.g.: from turbogears import identity
On May 23, 5:29 am, Diarmuid <[EMAIL PROTECTED]> wrote:
> Guys,
>
> IU have a TG project that I created using the command line (tg-admin)
> but created the identity related stuff using the option within
> quickstart, i.e not by including the -identity command line option .
>
> I have added the created a user and a group and added
> @identity.require(identity.in_group("admin")) to my class. When I go
> to the page related to that class, the identity is displayed , based
> on the default master template. The issue is that if I then want to go
> to another page that is protected in the same way, the login page is
> displayed again. It seems that the identity object is not being
> retained between calls . I have tried enabling sessions but that did
> not work.
>
> I have read and ran the identity tutorial but that does not cover
> multiple pages ( or if it does it assunes that all is fine). I feel I
> am missing some simple step.
>
> Cheers
>
> Diarmuid
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---