hmm, some of the documentation was written before we started using
declarative as the default.   Any specifics that you have about how
the documentation could be made clearer would be greatly appreciated,
and would likely result in updated docs between now and Beta 2, or RC
1  (whatever the next release is called).

--Mark

On Sun, Nov 2, 2008 at 1:28 AM, Oleksandr Moskalenko
<[EMAIL PROTECTED]> wrote:
>
> * Oleksandr Moskalenko <[EMAIL PROTECTED]> [2008-11-02 00:00:50 -0600]:
>
> Well, I'm starting to get somewhere I think. I've changed the model I showed 
> in
> the previous message to
>
> --------------------------------------------------
>    global t_inventory
>    t_inventory = Table("inventory", metadata,
>            autoload=True, autoload_with=engine)
>
>    class Inventory(object):
>        __tablename__ = 'inventory'
>
>    mapper(Inventory, t_inventory)
> --------------------------------------------------
>
> and did a
> from chemcupboard.model import t_inventory
> import at the top of root.py. Then, it appears, I became able to write
> "invlist = DBSession.query(t_inventory)" in my controller. Then, an
> sqlalchemy.orm.query.Query object finally became available in my template. I
> still think the documentation could be clearer, though.
>
> Regards,
>
> Alex.
>
> >
>



-- 
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 Trunk" 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-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to