Author: bugman Date: Thu Mar 8 08:23:25 2007 New Revision: 3122 URL: http://svn.gna.org/viewcvs/relax?rev=3122&view=rev Log: Bug fix. Removed the call to getattr for 'add' to prevent a recursion issue. Modified: 1.3/data/__init__.py Modified: 1.3/data/__init__.py URL: http://svn.gna.org/viewcvs/relax/1.3/data/__init__.py?rev=3122&r1=3121&r2=3122&view=diff ============================================================================== --- 1.3/data/__init__.py (original) +++ 1.3/data/__init__.py Thu Mar 8 08:23:25 2007 @@ -89,19 +89,22 @@ text = text + "\n" text = text + "Objects:\n" for name in dir(self): - if match("^_", name): - continue - if name in DictType.__dict__: + if match("^_", name) or name in DictType.__dict__ or name == 'add': continue text = text + " %s: %s\n" % (name, `getattr(self, name)`) + # Methods. + text = text + "\n" + text = text + "Methods:\n" + text = text + " add, Add a new pipe container to the dictionary.\n" + # DictType methods. text = text + "\n" - text = text + "Dictionary type methods:\n" + text = text + "Inherited dictionary methods:\n" for name in dir(DictType): if match("^_", name): continue - text = text + " %s, %s\n" % (name, `type(getattr(self, name))`) + text = text + " %s\n" % name return text