mailr6391 - /1.3/data/data_classes.py


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

Header


Content

Posted by edward on June 22, 2008 - 14:42:
Author: bugman
Date: Sun Jun 22 14:42:08 2008
New Revision: 6391

URL: http://svn.gna.org/viewcvs/relax?rev=6391&view=rev
Log:
Bug fix for the displaying of the contents of the Element object.


Modified:
    1.3/data/data_classes.py

Modified: 1.3/data/data_classes.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/data/data_classes.py?rev=6391&r1=6390&r2=6391&view=diff
==============================================================================
--- 1.3/data/data_classes.py (original)
+++ 1.3/data/data_classes.py Sun Jun 22 14:42:08 2008
@@ -38,8 +38,15 @@
 
         # Data structures.
         for name in dir(self):
+            # Skip object methods.
+            if name == 'is_empty':
+                continue
+
+            # Skip special objects.
             if search("^_", name):
                 continue
+
+            # Generate the text.
             text = text + "%-25s%-100s\n" % (name, `getattr(self, name)`)
 
         # Return the lot.




Related Messages


Powered by MHonArc, Updated Sun Jun 22 15:00:19 2008