John Lorance schrieb: > Using the 1.0.2.2 version of TurboGears and 0.38 of SQLAlchemy, I've > found when I create a quickstart project, I don't seem to get a full > set of methods for User and Group (like addUser or addGroup) that I > can see that I get when I don't specify the --sqlalchemy option when > I create the project. > > Is there something wrong with my config. or is there some things that > the identity system is not yet supporting using SQLAlchemy? Couldn't > find any info relating to this.
The API for data objects of SQLAlchemy is slightly different than that of SQLObject. The methods you are missing are provided by SQLObject automatically for many-to-many relationships. With SQLAlchemy attributes, that form part of a many-to-many relationship, behave like normal Python lists, so you can just use .append() on the attribute. See the SQLAlchemy docs for more: http://www.sqlalchemy.org/docs/datamapping.html#datamapping_manytomany Chris --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

