Jorge Vargas wrote:
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?
As far as I know I'm pointing at the correct tables - everything works
ok without the extraneous tables.
Something suddenly occurs to me. Does Catwalk by default read from
dev.cfg or prod.cfg? That could be the problem (I've not touched
prod.cfg yet). Though everything relating to configuring identity
should be set in app.cfg right? So that should not make too much
difference.
I think some of my initial problem was due to
identity.soprovider.model.visit
Not being set in the quickstart project, so tg_visit_identity was being
used instead of visit_identity. It freaked me out slightly not being
able to see how the visit key was getting associated with a user id, as
visit_identity was empty - seemed like some serious magic until I'd
realised the mistake.
If I delete the extra tables everything else runs fine - so this hasn't
stopped me doing any development at all. Just be nice to able to use
CatWalk for admin control.
So does catwalk cache some info on the file system along the way? If
so how do I go about deleting it?
cheers,
John
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---