[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [29552] branches/soc-2008-mxcurioni/source /blender/python/doc/sphinx_doc_gen.py: Restored all changes that were reverted by accident during the last merge.

Tamito Kajiyama rd6t-kjym at asahi-net.or.jp
Sat Jun 19 01:13:24 CEST 2010


Revision: 29552
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=29552
Author:   kjym3
Date:     2010-06-19 01:13:24 +0200 (Sat, 19 Jun 2010)

Log Message:
-----------
Restored all changes that were reverted by accident during the last merge.

Modified Paths:
--------------
    branches/soc-2008-mxcurioni/source/blender/python/doc/sphinx_doc_gen.py

Modified: branches/soc-2008-mxcurioni/source/blender/python/doc/sphinx_doc_gen.py
===================================================================
--- branches/soc-2008-mxcurioni/source/blender/python/doc/sphinx_doc_gen.py	2010-06-18 22:53:49 UTC (rev 29551)
+++ branches/soc-2008-mxcurioni/source/blender/python/doc/sphinx_doc_gen.py	2010-06-18 23:13:24 UTC (rev 29552)
@@ -47,6 +47,7 @@
 # lame, python wont give some access
 MethodDescriptorType = type(dict.get)
 GetSetDescriptorType = type(int.real)
+StaticMethodType = type(staticmethod(lambda: None))
 
 EXAMPLE_SET = set()
 EXAMPLE_SET_USED = set()
@@ -271,6 +272,12 @@
             if type(descr) == GetSetDescriptorType:
                 py_descr2sphinx("   ", fw, descr, module_name, type_name, key)
 
+        for key, descr in descr_items:
+            if type(descr) == StaticMethodType:
+                descr = getattr(value, key)
+                write_indented_lines("   ", fw, descr.__doc__ or "Undocumented", False)
+                fw("\n")
+
         fw("\n\n")
 
     file.close()
@@ -369,6 +376,7 @@
 
 
     fw("   mathutils.rst\n\n")
+    fw("   Freestyle.rst\n\n")
     fw("   blf.rst\n\n")
     
     # game engine
@@ -423,6 +431,10 @@
     pymodule2sphinx(BASEPATH, "mathutils", module, "Math Types & Utilities (mathutils)")
     del module
 
+    import Freestyle as module
+    pymodule2sphinx(BASEPATH, "Freestyle", module, "Freestyle Operators & Rules (Freestyle)")
+    del module
+
     import blf as module
     pymodule2sphinx(BASEPATH, "blf", module, "Blender Font Drawing (blf)")
     del module





More information about the Bf-blender-cvs mailing list