On Mon, 2006-03-06 at 08:23 -0300, Jorge Godoy wrote:
> "Drew Whitehouse" <[EMAIL PROTECTED]> writes:
> 
> > As I mentioned identity.on is definitely True and tg-admin sql create
> > is creating the identity related tables. This code used to work until
> > about a week ago. Has anyone managed to use identity lately, following
> > the old article that shows you how to use tg-admin shell to add new
> > users to a database ?
> 
> Yes.  And it is working perfectly...  

I'm trying to reconcile "working perfectly" with an easily reproducible
bug:

$ python -c "import turbogears; print turbogears.__file__"
/usr/lib/python2.4/site-packages/TurboGears-0.9a1dev_r896-py2.4.egg/turbogears/__init__.pyc

$ tg-admin quickstart test635
...

edit devcfg.py and add the following lines:

sqlobject.dburi="sqlite:///%s" % absfile ( 'test635', 'database' )
identity.on = True
visit.on = True

$ tg-admin sql sql
...

$ tg-admin shell
>>>
In [1]: from turbogears.identity.soprovider import *

In [2]: u=TG_User( userId="jeff",
emailAddress="[EMAIL PROTECTED]",displayName="Jeff Watkins",
password="xxxxx" )
---------------------------------------------------------------------------
turbogears.identity.exceptions.IdentityManagementNotEnabledException
Traceback (most recent call last)

...

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].


Regards,
Cliff



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to