Author: bugman Date: Tue Jan 26 20:39:10 2010 New Revision: 10415 URL: http://svn.gna.org/viewcvs/relax?rev=10415&view=rev Log: Fixes to the Analyses() class. The corresponding XML element is now correctly created. Modified: branches/bieri_gui/data/gui.py Modified: branches/bieri_gui/data/gui.py URL: http://svn.gna.org/viewcvs/relax/branches/bieri_gui/data/gui.py?rev=10415&r1=10414&r2=10415&view=diff ============================================================================== --- branches/bieri_gui/data/gui.py (original) +++ branches/bieri_gui/data/gui.py Tue Jan 26 20:39:10 2010 @@ -56,9 +56,7 @@ # Some generic initial names. self.list_name = 'analyses' - self.list_desc = 'List of relax analyses' - self.element_name = 'analysis' - self.element_desc = 'relax analysis' + self.list_desc = 'GUI information specific to relax analysis types' def add(self, type=None): @@ -69,7 +67,7 @@ """ # Append an empty element. - self.append(Element()) + self.append(Element(name='analysis', desc='GUI information for a relax analysis')) - # Set the analysis name. - self.name = type + # Set the analysis type. + self[-1].analysis_type = type