mailr8432 - /branches/multi_structure/specific_fns/model_free/main.py


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

Header


Content

Posted by edward on January 13, 2009 - 16:12:
Author: bugman
Date: Tue Jan 13 16:12:39 2009
New Revision: 8432

URL: http://svn.gna.org/viewcvs/relax?rev=8432&view=rev
Log:
Fixes for the __compare_objects() method.


Modified:
    branches/multi_structure/specific_fns/model_free/main.py

Modified: branches/multi_structure/specific_fns/model_free/main.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/multi_structure/specific_fns/model_free/main.py?rev=8432&r1=8431&r2=8432&view=diff
==============================================================================
--- branches/multi_structure/specific_fns/model_free/main.py (original)
+++ branches/multi_structure/specific_fns/model_free/main.py Tue Jan 13 
16:12:39 2009
@@ -60,7 +60,7 @@
         # Loop over the modifiable objects.
         for data_name in dir(object_from):
             # Skip special objects (starting with _, or in the original 
class and base class namespaces).
-            if search('^_', data_name) or data_name in 
object_from.__class__.__dict__.keys() or data_name in 
object_from.__class__.__bases__[0].__dict__.keys():
+            if search('^_', data_name) or data_name in 
object_from.__class__.__dict__.keys() or (hasattr(object_from.__class__, 
'__bases__') and len(object_from.__class__.__bases__) and data_name in 
object_from.__class__.__bases__[0].__dict__.keys()):
                 continue
 
             # Skip some more special objects.




Related Messages


Powered by MHonArc, Updated Tue Jan 13 17:20:02 2009