Thanks for your replay.
I was reading that ticket. In my sqlalchemy installation (0.3.10
py2.5) the supports_sane_rowcount method in FBDialect class is
correct, it return False.
Now, according with 370 ticket, I also modify supports_sane_rowcount
on FBExecutionContext class and this work fine, no more
ConcurrentModificationError errors occur.
BTW, I did ask two question in one. Sorry. :(
---
First question is about some recommendation to synch TreeView (store
model) in PyGTK with a list in sqlalchemy.
In my example, I do:
# load detail
master.items = []
for row in my_gtk_tree_list:
det = Detail()
# assign some data to det from row
master.items.append(det)
That is, I delete the detail all time and re-load from my tree list.
It's correct my approach ?
--
Secondly, is about that error ConcurrentModificationError, which I
think happen because I delete the detail all time, but this is solved
doing the modifications according 370 ticket.
But, now, there are other problem. After I do
session.save_or_update(), if I want query again from my master/detail
structure (for edit again) I get the next exception:
File "C:\Python\Python25\Lib\site-packages\sqlalchemy-0.3.10-
py2.5.egg\sqlalchemy\orm\strategies.py", line 210, in lazyload
raise exceptions.InvalidRequestError("Parent instance %s is not
bound to a Session, and no contextual session is established; lazy
load operation of attribute '%s' cannot proceed" %
(instance.__class__, self.key))
InvalidRequestError: Parent instance <class 'common.model.CbteDet'> is
not bound to a Session, and no contextual session is established; lazy
load operation of attribute 'planilla' cannot proceed
What's the problem here?
Thanks so much for your help.
Regards.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sqlalchemy" 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/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---