mailr13393 - /branches/gui_testing/prompt/base_class.py


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

Header


Content

Posted by edward on July 01, 2011 - 19:14:
Author: bugman
Date: Fri Jul  1 19:14:52 2011
New Revision: 13393

URL: http://svn.gna.org/viewcvs/relax?rev=13393&view=rev
Log:
_build_doc() now handles the fn._doc_additional structure for adding 
additional sections.


Modified:
    branches/gui_testing/prompt/base_class.py

Modified: branches/gui_testing/prompt/base_class.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/prompt/base_class.py?rev=13393&r1=13392&r2=13393&view=diff
==============================================================================
--- branches/gui_testing/prompt/base_class.py (original)
+++ branches/gui_testing/prompt/base_class.py Fri Jul  1 19:14:52 2011
@@ -75,6 +75,13 @@
         fn.__doc__ = fn.__doc__ + '\n' + _build_subtitle("Examples")
         fn.__doc__ = fn.__doc__ + _format_text(fn._doc_examples)
 
+    # Add the additional sections.
+    if hasattr(fn, '_doc_additional'):
+        # Loop over each section.
+        for i in range(len(fn._doc_additional)):
+            fn.__doc__ = fn.__doc__ + '\n' + 
_build_subtitle(fn_doc_additional[0])
+            fn.__doc__ = fn.__doc__ + _format_text(fn._doc_additional[1])
+
 
 def _build_subtitle(text):
     """Create the formatted subtitle string.




Related Messages


Powered by MHonArc, Updated Fri Jul 01 19:20:02 2011