diff -r a2e65c705db8 -r 63964d875993 configurationengine/source/cone/public/plugin.py --- a/configurationengine/source/cone/public/plugin.py Tue Oct 26 10:43:50 2010 +0100 +++ b/configurationengine/source/cone/public/plugin.py Sat Nov 06 16:59:14 2010 +0200 @@ -25,6 +25,8 @@ from cone.public import exceptions, utils, api, settings, rules, parsecontext import _plugin_reader +from cone.public.exceptions import NotFound + debug = 0 """ @@ -147,12 +149,12 @@ #: Generation output elements as a list self.generation_output = [] - #: possible log elemement + #: possible log element self.log = [] self.log_file = "" - + def __getstate__(self): - state = self.__dict__ + state = self.__dict__.copy() state['impl_data_dict'] = {} return state @@ -768,6 +770,17 @@ (self.ref, config, self.lineno)) + #def __getstate__(self): + #state = self.__dict__ + #state['configuration'] = self.configuration.path + #return state + + #def __setstate__(self, dict): + # path = dict['configuration'] + # configuration = api.ConfigurationProxy(path) + # self.__dict__.update(dict) + # self.configuration = configuration + def _dereference(self, ref): """ Function for dereferencing a configuration ref to a value in the Implementation configuration context.