Diez B. Roggisch wrote:

> On Thursday 11 January 2007 13:20, Ben Sizer wrote:
> > [EMAIL PROTECTED] wrote:
> > > Hi all,
> > >
> > > Is there an easy way to add Identity to an existing TG project?  I've
> > > written a LOT of code and am hoping to avoid starting a new project and
> > > manually updating the model, copying over my code, etc.  Thanks in
> > > advance!
> >
> > It seems to me, from previous replies to myself in supposedly simpler
> > situations, that even trivial alterations to your schema involve
> > "manually updating the model". Perhaps you can simplify this by
> > creating an empty new project with Identity enabled, and running a diff
> > on the relevant model.py and SQL schemas, to see what needs changing.
>
> This isn't entirely true. In case you introduced new objects (and adding
> identity should do that), this shouldn't cause any problems.
>
> Of course you need to copy'n'paste the model classes for identity from e.g. a
> freshly created project. But beyond that, you're finished.

I'm not entirely sure what you're saying here, Diez. My understanding
is that at a minimum, his tg_user object will change, requiring a
manual update of the database schema for that object, based on whatever
the fresh project generates as the relevant columns. This is on top of
the cut/paste of Python code for the model. I am assuming that the
entirely new tables for new model objects will be added automatically.

-- 
Ben Sizer


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