On Mon, Jan 26, 2009 at 10:08:05AM +0100, Petr Jake?? wrote:
> from http://exogen.case.edu/turbogears.html :
> $ tg-admin sql create
But where to put this code
> constraints = Story.createTable(applyConstraints=False)
> constraints += Page.createTable(applyConstraints=False)
>
> for constraint in constraints:
> Page._connection.query(constraint)
so that tg-admin runs it once but not on every import the model module?
Oleg.
--
Oleg Broytmann http://phd.pp.ru/ [email protected]
Programmers don't die, they just GOSUB without RETURN.
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss