Hello, I'm just upgraded an old project (trunk pre-tg2b1) to use
tg.authorization.

The first thing I did was upgrade the virtualenv to be tgb1 which got
me   * tgext.authorization 0.9a1dev-r117

Second I ran a second quickstart project and diff it against my own,
moving all changes that where not package name. I replaced all
instances of identity for auth and deleted model/identity.py then
added model/auth.py from the new quickstart and changed the references
to my old project. The only trace left of identity in my project is
inside /lib/base.py in reference to 'repoze.who.identity'

Third made sure everything compiles and runs ok.
.
I should note I have a custom script (not websetup.py) to populate the
db. So the step below may not be needed.

When I run this the problem I'm getting is that the new code is
failing somewhere related to the visit with
AttributeError: 'str' object has no attribute '__visit_name__'
Now this is happening on the first line that hits the db of my project
    case_managers = model.Group(group_name=u"managers",display_name=u"Managers")

the traceback in between is just SA stack.

this is because the index is giving you SA0.5beta3 therefore you should run:
$ easy_install -U sqlalchemy

which will get you the lastest release candidate (0.5.0rc4) I'm not
entirely sure who is providing the old beta.

I encourage people to add their findings here so we can finally
default to tg.auth (well at least until tgb2 when we'll have to rename
again :)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" 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-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to