Author: bugman Date: Fri May 4 18:09:10 2012 New Revision: 15976 URL: http://svn.gna.org/viewcvs/relax?rev=15976&view=rev Log: The auto-generated Uf_page.add_contents() method now raises a RelaxError if the Python type is unknown. Modified: branches/uf_redesign/gui/uf_objects.py Modified: branches/uf_redesign/gui/uf_objects.py URL: http://svn.gna.org/viewcvs/relax/branches/uf_redesign/gui/uf_objects.py?rev=15976&r1=15975&r2=15976&view=diff ============================================================================== --- branches/uf_redesign/gui/uf_objects.py (original) +++ branches/uf_redesign/gui/uf_objects.py Fri May 4 18:09:10 2012 @@ -189,6 +189,10 @@ elif arg['py_type'] == 'str_list': self.element_string_list(key=arg['name'], element_type=arg['wiz_element_type'], sizer=sizer, desc=desc, combo_choices=arg['wiz_combo_choices'], combo_data=arg['wiz_combo_data'], combo_default=arg['wiz_combo_default'], combo_list_size=arg['wiz_combo_list_size'], tooltip=arg['desc']) + # Unknown type. + else: + raise RelaxError("The Python object type '%s' cannot be handled." % arg['py_type']) + def add_desc(self, sizer, max_y=220): """Add the description to the dialog.