On 1/15/07, lilspikey <[EMAIL PROTECTED]> wrote:
Hi,
currently finding some weirdness with Catwalk when using identity.
The key caveat is that I have added identity to a project _after_
creating it initially, by generating a new project with tg-admin
quickstart and moving over files/code etc as appropriate.
I am now at the point where identity works ok and I have the
identity related tables in my (mysql) database as follows:
group_permission
permission
tg_group
tg_user
user_group
visit
visit_identity
If I use tg-admin shell to add a new user it all work ok and I can
log in, query for the current user etc. I can also see the visit and
visit_identity tables getting updated as I would expect (i.e. seeing a
row in visit_identity that has the right user_id when logged in).
I also get my classes being loaded for identity:
2007-01-15 12:17:01,787 turbogears.visit.sovisit INFO Succesfully
loaded "chrss.model.Visit"
2007-01-15 12:17:01,938 turbogears.identity.soprovider INFO
Succesfully loaded "chrss.model.User"
2007-01-15 12:17:01,940 turbogears.identity.soprovider INFO
Succesfully loaded "chrss.model.Group"
2007-01-15 12:17:01,941 turbogears.identity.soprovider INFO
Succesfully loaded "chrss.model.Permission"
2007-01-15 12:17:01,942 turbogears.identity.soprovider INFO
Succesfully loaded "chrss.model.VisitIdentity"
So that all works ok.
However starting tg-admin toolbox loads the wrong identity classes:
2007-01-15 12:18:57,390 turbogears.visit.sovisit INFO Succesfully
loaded "turbogears.visit.sovisit.TG_Visit"
2007-01-15 12:18:57,568 turbogears.identity.soprovider INFO
Succesfully loaded "turbogears.identity.soprovider.TG_User"
2007-01-15 12:18:57,569 turbogears.identity.soprovider INFO
Succesfully loaded "turbogears.identity.soprovider.TG_Group"
2007-01-15 12:18:57,571 turbogears.identity.soprovider INFO
Succesfully loaded "turbogears.identity.soprovider.TG_Permission"
2007-01-15 12:18:57,572 turbogears.identity.soprovider INFO
Succesfully loaded "turbogears.identity.soprovider.TG_VisitIdentity"
And also creates matching tables in the database, so now I have these
tables:
group_permission
permission
tg_group
tg_permission
tg_user
tg_visit
tg_visit_identity
user_group
visit
visit_identity
I can then still log in and things seem to work, but I've got these
spurious tables. Obviously for now I'll just not use Catwalk, but it's
slightly vexing.
this seems like a catching problem. I believe catwalk keep some
configuration (that's how it remembers table order and such) did you
try deleting those? are you sure your prod/dev.cfg files are pointing
to the correct tables?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---