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.


_______________________________________________
relax (http://nmr-relax.com)

This is the relax-commits mailing list
[email protected]

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits

Reply via email to