On 10/29/06, Elvelind Grandin <[EMAIL PROTECTED]> wrote:
>
> Is there somebody that uses these in their projects? If not they will
> be changed in the next released to a Project class.
>
I have some code that depends on get_model it's my hackish way of
tg-admin sql drop,tg-admin sql create, put sample data. it goes like
this.
for item in turbogears.util.get_model().__dict__.values():
if inspect.isclass(item) and issubclass(item,sqlobject.SQLObject) and \
item != sqlobject.SQLObject and item != InheritableSQLObject:
item.dropTable(ifExists=True)
item.createTable()
I guess that can be broken since it's not production code.
also I plan to make a "real" tg-admin command for this so I can write
if after the changes.
what exactly are you planning?
> --
> cheers
> elvelind grandin
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---