Commit 194ccd38 authored by 's avatar

*** empty log message ***

parent 0a6137ae
...@@ -328,12 +328,16 @@ class ZClass(OFS.SimpleItem.SimpleItem): ...@@ -328,12 +328,16 @@ class ZClass(OFS.SimpleItem.SimpleItem):
# Waaa, we need our jar to register, but we may not have one yet when # Waaa, we need our jar to register, but we may not have one yet when
# we need to register, so we'll walk our acquisition tree looking # we need to register, so we'll walk our acquisition tree looking
# for one. # for one.
jar=None
while 1: while 1:
try: jar=self._p_jar if hasattr(self, '_p_jar'):
except: return jar=self._p_jar
if jar is not None: return jar if jar is not None:
try: self=self.aq_parent return jar
except: return if not hasattr(self, 'aq_parent'):
return jar
self=self.aq_parent
def _register(self): def _register(self):
if not dbVersionEquals('3'): if not dbVersionEquals('3'):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment