destroySelf locks up (resolves wrong hub circa PackageHub.__get__) when
called on a dirty model instance. found in 0.9a1 with sqlobject
0.7.1dev_r1588 and psycopg.
this behavior does not manifest when using sqlobject's sqlhub


hub = PackageHub("fuzzyjoy")
__connection__ = hub

class Cat(SQLObject):
    name = StringCol()


cat = Cat(name="felix")
hub.commit()
cat.name = "tom"
cat.destroySelf()
== hang ==


the workaround is to commit the dirty record before calling
destroySelf, but that rubs me kinda funny and is not the way sqlhub
works.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to