[Zope] Re: Subtranscations are hacky?
Dieter Maurer
dieter@handshake.de
Sun, 28 Jan 2001 20:28:01 +0100 (CET)
Chris Withers writes:
> ....
> What about just putting a try: ... except
> AttributeError around the commit_sub call in Transaction.py? What bad effects
> would that have?
That would probably not be a good idea as it could hide serious
problems. ZCatalog has a similar "try: ... except" and in its
case, many trivial bugs are hidden thereby.
"hasattr(...,'commit_sub')" and "hasattr(....,'abort_sub')"
would be a better approach.
Dieter