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