Don't worry, for the time being I will make it backwards compatible.
If the future it look something like.
project = Project()
project.model instead of get_model

I will update the docs when I have time to commit it.

On 10/30/06, Jorge Vargas <[EMAIL PROTECTED]> wrote:
>
> 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
> >
> > >
> >
>
> >
>


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

Reply via email to