mailr13436 - /branches/gui_testing/gui/user_functions/base.py


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

Header


Content

Posted by edward on July 06, 2011 - 11:04:
Author: bugman
Date: Wed Jul  6 11:04:42 2011
New Revision: 13436

URL: http://svn.gna.org/viewcvs/relax?rev=13436&view=rev
Log:
Fix for the extraction of the user function page title from the docstring.

The title was not being stored as a class variable!


Modified:
    branches/gui_testing/gui/user_functions/base.py

Modified: branches/gui_testing/gui/user_functions/base.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/user_functions/base.py?rev=13436&r1=13435&r2=13436&view=diff
==============================================================================
--- branches/gui_testing/gui/user_functions/base.py (original)
+++ branches/gui_testing/gui/user_functions/base.py Wed Jul  6 11:04:42 2011
@@ -81,11 +81,11 @@
                 uf = getattr(uf_class, self.uf_path[1])
 
             # Set the user function title.
-            title = uf._doc_title
+            self.title = uf._doc_title
 
             # Set the main text to the description doc.
             if hasattr(uf, '_doc_desc'):
-                self.main_text = title + '\n\n' + 
self._format_text(uf._doc_desc)
+                self.main_text = self.title + '\n\n' + 
self._format_text(uf._doc_desc)
 
                 # Remove trailing newlines.
                 if self.main_text[-1] == '\n':




Related Messages


Powered by MHonArc, Updated Wed Jul 06 11:20:02 2011