예제 #1
0
 def __setstate__(self, state):
     # Perform on-the-fly migration from unicode.
     if isinstance(state.get('_text'), unicode):
         state['_text'] = state['_text'].encode('utf-8')
     if isinstance(state.get('title'), unicode):
         state['title'] = state['title'].encode('utf-8')
     ZopePageTemplate.inheritedAttribute('__setstate__')(self, state)
 def manage_afterClone(self, object):
     BaseClass.inheritedAttribute('manage_afterClone')(self, object)
     self._base_manage_afterClone(object)
 def manage_afterAdd(self, object, container):
     BaseClass.inheritedAttribute('manage_afterAdd')(self, object, container)
     self._base_manage_afterAdd(object, container)
예제 #4
0
 def manage_afterClone(self, object):
     BaseClass.inheritedAttribute('manage_afterClone')(self, object)
     self._base_manage_afterClone(object)
예제 #5
0
 def manage_afterAdd(self, object, container):
     BaseClass.inheritedAttribute('manage_afterAdd')(self, object, container)
     self._base_manage_afterAdd(object, container)