I am working with sqlalchemy and postgresql and modified the model to
just include User and Role (in place of Group) and removed the
permissions class.

roles_table = Table('tg_role', metadata,
    Column('role_id', Integer, primary_key=True),
    Column('role_name', Unicode(16), unique=True),
)

users_table = Table('tg_user', metadata,
    Column('user_id', Integer, primary_key=True),
    Column('user_name', Unicode(16), unique=True),
    ..other parameters
)

user_role_table = Table('user_role', metadata,
    Column('user_id', Integer, ForeignKey('tg_user.user_id')),
    Column('role_id', Integer, ForeignKey('tg_role.role_id'))
)

tg-admin sql create works fine but am unable to start the server.
Starting it throws this exception. Any ideas what could be wrong with
the schema...

Unhandled exception in thread started by <bound method Server._start of
<cherryp
y._cpserver.Server object at 0x00D4D690>>
.......
  File
"c:\python24\lib\site-packages\TurboGears-1.0b2-py2.4.egg\turbogears\iden
tity\saprovider.py", line 119, in __init__
    group_class = load_class(group_class_path)
  File
"c:\python24\lib\site-packages\TurboGears-1.0b2-py2.4.egg\turbogears\util
.py", line 294, in load_class
    splitted_path = dottedpath.split('.')

AttributeError: 'NoneType' object has no attribute 'split'


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