DocumentationTools/ModuleDocumentor.py

changeset 766
0940de08fa75
parent 564
b3d966393ba9
child 791
9ec2ac20e54e
--- a/DocumentationTools/ModuleDocumentor.py	Mon Dec 20 19:39:15 2010 +0100
+++ b/DocumentationTools/ModuleDocumentor.py	Mon Dec 20 20:06:59 2010 +0100
@@ -291,10 +291,13 @@
         @param class_ reference to a class object (Class)
         @return The globals list section. (string)
         """
+        attrNames = []
         if class_ is not None:
-            attrNames = sorted(class_.globals.keys())
+            scope = class_
         else:
-            attrNames = sorted(self.module.globals.keys())
+            scope = self.module
+        attrNames = sorted([attr for attr in scope.globals.keys() 
+                                 if not scope.globals[attr].isSignal])
         if attrNames:
             s = ''.join(
                 [self.listEntrySimpleTemplate.format(**{'Name' : name}) \
@@ -1032,4 +1035,4 @@
         if not self.generated:
             self.genDocument()
         
-        return self.keywords
\ No newline at end of file
+        return self.keywords

eric ide

mercurial