try just using User instead of importing TG_User.
On 6/28/06, Mike Kent <[EMAIL PROTECTED]> wrote:
>
> Using latest TG from svn trunk, I:
> create a project via tg-admin quickstart, and tell it to turn on
> identity,
> cd to project dir,
> edit dev.cfg to set my db
> run tg-admin sql create
> run tg-admin shell
> from turbogears.identity.soprovider import TG_User
> user = TG_User(user_name="me", display_name="Me",
> password="knockknock")
>
> At this point, I get the following exception:
>
> turbogears.identity.exceptions.RequestRequiredException
> Traceback (most recent call last)
>
> ... bunch of stuff cut ...
>
> /turbogears/turbogears/identity/__init__.py in __getattr__(self, name)
> 76 if provider is None:
> 77 if not request_available():
> ---> 78 raise RequestRequiredException()
> 79 raise IdentityManagementNotEnabledException()
> 80
>
> RequestRequiredException: An attempt was made to use a facility of the
> TurboGears Identity Management framework that relies on an HTTP request
> outside of a request.
>
>
> Any ideas?
>
>
> >
>
--
cheers
elvelind grandin
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---