did you activated the lines in the config to point to your model classes? it seems like identity is trying to load the old classes, that are still there for backward compatibility. 

On 5/3/06, Dark Lil'Troll <[EMAIL PROTECTED]> wrote:

Hi every body.

I just finish to read the last tutorial about identity management, so I
download the 0.9a5 release of turbogears, using easy_install.

If I 'quickstart' a project without identity managemene,t no problems,
everything seems ok.
But ... If I 'quickstart' a new project dealing with identity, I've got
some strange problems ...

My 'model.py' seems ok. I can 'tg-admin sql create' in order to set up
the database, and if I log in the DBMS, the rights tables were created
:
mysql> show tables;
+------------------+
| Tables_in_tg_id  |
+------------------+
| group_permission |
| permission       |
| tg_group         |
| tg_visit         |
| user             |
| user_group       |
| visit_identity   |
+------------------+
7 rows in set (0.00 sec)

But, If I want to run this 'wonderful' project, kaboom :
Unhandled exception in thread started by <bound method Server._start of
<cherrypy._cpserver.Server object at 0xb7c35bcc>>
Traceback (most recent call last):
  File
"/usr/lib/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/_cpserver.py",
line 78, in _start
    Engine._start(self)
  File
"/usr/lib/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/_cpengine.py",
line 108, in _start
    func()
  File
"/usr/lib/python2.4/site-packages/TurboGears- 0.9a5-py2.4.egg/turbogears/startup.py",
line 218, in startTurboGears
    ext.start_extension()
  File
"/usr/lib/python2.4/site-packages/TurboGears-0.9a5-py2.4.egg/turbogears/identity/visitor.py",
line 33, in start_extension
    create_extension_model()
  File
"/usr/lib/python2.4/site-packages/TurboGears-0.9a5-py2.4.egg/turbogears/identity/visitor.py",
line 48, in create_extension_model
    provider.create_provider_model()
  File
"/usr/lib/python2.4/site-packages/TurboGears-0.9a5-py2.4.egg/turbogears/identity/soprovider.py",
line 186, in create_provider_model
    user_class.createTable(ifNotExists=True)
AttributeError: 'NoneType' object has no attribute 'createTable'


I'm afraid I don't understand this error ... Maybe it's beacause I'm
french, and the charset encoding is different ... But it's a problem
^_^ !

Any ideas or link in order to fix it ?

--
  Sebastian






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