[Zope-CVS] CVS: Products/AdaptableStorage/serial_ofs - ZSQLMethodSerializer.py:1.3
Christian Zagrodnick
cz@gocept.com
Sun, 16 Feb 2003 08:54:22 -0500
Update of /cvs-repository/Products/AdaptableStorage/serial_ofs
In directory cvs.zope.org:/tmp/cvs-serv9062
Modified Files:
ZSQLMethodSerializer.py
Log Message:
- Making sure all Z SQL Methods have a connection_id attribute. If they
don't you cannot even view them via ZMI, thus cannot set the real
connection_id via ZMI.
=== Products/AdaptableStorage/serial_ofs/ZSQLMethodSerializer.py 1.2 => 1.3 ===
--- Products/AdaptableStorage/serial_ofs/ZSQLMethodSerializer.py:1.2 Mon Feb 3 13:26:50 2003
+++ Products/AdaptableStorage/serial_ofs/ZSQLMethodSerializer.py Sun Feb 16 08:54:19 2003
@@ -19,7 +19,7 @@
import re
from types import StringType
-from Products.ZSQLMethods.SQL import SQL
+from Products.ZSQLMethods.SQL import SQL, SQLConnectionIDs
from Shared.DC.ZRDB.Aqueduct import parse
try:
@@ -70,6 +70,8 @@
object.template = object.template_class(body)
object.template.cook()
object._v_cache = ({}, Bucket())
+ if not hasattr(object, 'connection_id'):
+ object.connection_id = ''
class ZSQLMethodPropertiesSerializer:
@@ -127,4 +129,7 @@
value = factory(value)
setattr(object, attribute, value)
event.notifyDeserialized(attribute, value)
+ if not hasattr(object, 'connection_id'):
+ object.connection_id = ''
+