Author: bugman Date: Thu May 31 18:20:02 2012 New Revision: 16574 URL: http://svn.gna.org/viewcvs/relax?rev=16574&view=rev Log: The prompt help string for user function classes now includes info about the member user functions. Modified: branches/uf_redesign/prompt/uf_objects.py Modified: branches/uf_redesign/prompt/uf_objects.py URL: http://svn.gna.org/viewcvs/relax/branches/uf_redesign/prompt/uf_objects.py?rev=16574&r1=16573&r2=16574&view=diff ============================================================================== --- branches/uf_redesign/prompt/uf_objects.py (original) +++ branches/uf_redesign/prompt/uf_objects.py Thu May 31 18:20:02 2012 @@ -30,6 +30,7 @@ from relax_errors import RelaxError from relax_string import strip_lead from status import Status; status = Status() +from user_functions.data import Uf_info; uf_info = Uf_info() class Class_container(object): @@ -77,11 +78,18 @@ # Usage help string. doc += build_subtitle("Usage") doc += format_text(relax_class_help) + doc += "\n" # Add a description to the help string. if hasattr(self, '__description__'): doc += build_subtitle("Description") - doc += "\n\n%s" % strip_lead(self.__description__) + doc += "\n\n%s\n" % strip_lead(self.__description__) + + # The member user functions. + doc += build_subtitle("User functions") + doc += "This class contains the following user functions:\n\n" + for uf_name, uf in uf_info.uf_loop(self._name): + doc += " - %s\n" % uf_name # Return the documentation. return doc