mailr6253 - /branches/singleton_fixing/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 May 22, 2008 - 16:38:
Author: bugman
Date: Thu May 22 16:38:44 2008
New Revision: 6253

URL: http://svn.gna.org/viewcvs/relax?rev=6253&view=rev
Log:
Fix for the loading of the pickled relax data store.

The blacklisted objects was extended to include all dict objects, data store 
specific methods, and
other special objects.


Modified:
    branches/singleton_fixing/generic_fns/state.py

Modified: branches/singleton_fixing/generic_fns/state.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/singleton_fixing/generic_fns/state.py?rev=6253&r1=6252&r2=6253&view=diff
==============================================================================
--- branches/singleton_fixing/generic_fns/state.py (original)
+++ branches/singleton_fixing/generic_fns/state.py Thu May 22 16:38:44 2008
@@ -53,8 +53,8 @@
     # Reset the relax data storage object.
     relax_data_store.__reset__()
 
-    # Black list of objects.
-    black_list = ['__weakref__']
+    # 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']
 
     # 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 Thu May 22 16:40:10 2008