On 6/21/06, OriginalBrownster <[EMAIL PROTECTED]> wrote:

This definately helped, it doesnt provide much help for using an
existing database of username and passwords. Anyone know how this can
be done easily...

yes that's why your identity classes (User,Group,etc) are now on model.py so you can make any changes you want to them.

if you want to use exactly the same table you will need the "from database" http://sqlobject.org/SQLObject.html#class-sqlmeta
if I recall correctly is something like
class User:
    class sqlmeta:
        fromDatabase=True

if not you could either
- create the User, then load up all the data from your old table (with regular sql)
- make a view
- make a 2 table relationship that will table some info (FK) from the original table to populate User obbjects
- make ur User class identical to your original table(never try that one)

i am presuming by using a seperate sqlojbect. would be
nice to make use of the existing log in feature though

the identity framework is made to be extendible, if you don't like/want/need to use SQLObject you can create your own provider and read from lets say a an LDAP directory or /etc/passwd,etc.





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