mailr7684 - /1.3/generic_fns/state.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on October 12, 2008 - 22:23:
Author: bugman
Date: Sun Oct 12 22:23:16 2008
New Revision: 7684

URL: http://svn.gna.org/viewcvs/relax?rev=7684&view=rev
Log:
Fix for bug #12437 (https://gna.org/bugs/?12437).

The problem was that the 'from_xml' and 'to_xml' methods needed to be 
blacklisted to prevent them
from being restored from the pickled state.


Modified:
    1.3/generic_fns/state.py

Modified: 1.3/generic_fns/state.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/generic_fns/state.py?rev=7684&r1=7683&r2=7684&view=diff
==============================================================================
--- 1.3/generic_fns/state.py (original)
+++ 1.3/generic_fns/state.py Sun Oct 12 22:23:16 2008
@@ -57,7 +57,7 @@
     ds.__reset__()
 
     # Black list of objects (all dict objects, non-modifiable objects, data 
store specific methods, and other special objects).
-    black_list = dir(dict) + ['__weakref__', '__dict__', '__module__', 
'__reset__', 'add']
+    black_list = dir(dict) + ['__weakref__', '__dict__', '__module__', 
'__reset__', 'add', 'from_xml', 'to_xml']
 
     # Loop over the objects in the saved state, and dump them into the relax 
data store.
     for name in dir(state):




Related Messages


Powered by MHonArc, Updated Mon Oct 13 17:20:02 2008