And Identity is not supported yet either. On Nov 21, 2007 10:28 AM, Mark Ramm <[EMAIL PROTECTED]> wrote: > Currently TG2 only has one template for plain SQLAlchemy. > > Other ORMs and other templates will be supported eventually, but at > the moment we are working on the core stuff. > > --Mark > > > On Nov 21, 2007 7:54 AM, Helio Pereira <[EMAIL PROTECTED]> wrote: > > > > Hi all, > > > > I'm trying tg2 and notice that when I create new projects with > > different options, my model/__init__.py is always equal. I thing maybe > > is something I'm doing wrong. > > > > My commands to create new projects: > > > > """Do you need Identity (usernames/passwords) in this project? [no] > > yes""" > > > > paster quickstart -o T1 > > paster quickstart -o -i T2 > > paster quickstart -s T3 > > paster quickstart -s -i T4 > > paster quickstart -s T5 > > paster quickstart -s -i T6 > > > > and my model/__init__.py is the same for all projects: > > """ > > from pylons import config > > from sqlalchemy import Column, MetaData, Table, types > > from sqlalchemy.orm import mapper, relation > > from sqlalchemy.orm import scoped_session, sessionmaker > > > > # Global session manager. Session() returns the session object > > # appropriate for the current web request. > > DBSession = scoped_session(sessionmaker(autoflush=True, > > transactional=True)) > > > > # Global metadata. If you have multiple databases with overlapping > > table > > # names, you'll need a metadata for each database. > > metadata = MetaData() > > """ > > > > I'm doing something wrong or tg2 can't creat new projects? > > > > Thanks for all, > > Helio Pereira > > > > > > > > > > -- > Mark Ramm-Christensen > email: mark at compoundthinking dot com > blog: www.compoundthinking.com/blog >
-- Mark Ramm-Christensen email: mark at compoundthinking dot com blog: www.compoundthinking.com/blog --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

