Lawrence Oluyede wrote:
>
>
> "UnboundExecutionError: Parent instance <Configuration at 0x8ce466c>
> is not bound to a Session; lazy load operation of attribute 'parent'
> cannot proceed"
>

the error means simply this:

x = session.query(X).get(5)

del session  # or session.clear(), session.expunge(x), etc.

print x.child_items

the "child_items" is being asked to issue a Query to the database for
related items, but no Session is present with which to establish
transactional context.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to