>
> OK, I get the basic idea; expunge isn't automatic. Let me rework the
> setProp to get things running again here, and then I'll pick up the
> discussion about that.
>
>
For the archives: This rework sidesteps the issue:
def setProp(self, prop, exclusive=True):
if exclusive:
curprops = [p for p in self.props]
for p in curprops:
if p.typ == prop.typ:
session_object(p).expunge(p)
self.props.remove(p)
self.props.append(prop)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---