diff -r a2e65c705db8 -r 63964d875993 configurationengine/source/cone/public/container.py --- a/configurationengine/source/cone/public/container.py Tue Oct 26 10:43:50 2010 +0100 +++ b/configurationengine/source/cone/public/container.py Sat Nov 06 16:59:14 2010 +0200 @@ -150,22 +150,11 @@ setattr(self, arg, kwargs.get(arg)) def __getstate__(self): - state = {} - if self._parent: state['_parent'] = self._parent - if self._order: state['_order'] = self._order - if self._children: state['_children'] = self._children - if self._respath: state['_respath'] = self._respath + state = self.__dict__.copy() return state def __setstate__(self, state): - self._name = state.get('ref','') - self._parent = state.get('_parent',None) - self._order = state.get('_order',[]) - self._children = state.get('_children',{}) - self._respath = state.get('_respath',"") - # update the parent link for all the children of this object - for child in self._objects(): - child._parent = self + self.__dict__.update(state) def _set_parent(self, newparent): """