diff --git a/Utilities/Dox/PythonScripts/CrossReference.py b/Utilities/Dox/PythonScripts/CrossReference.py index 37beba054..88c264eb7 100755 --- a/Utilities/Dox/PythonScripts/CrossReference.py +++ b/Utilities/Dox/PythonScripts/CrossReference.py @@ -95,7 +95,11 @@ def __init__(self, routineName, package=None): self._originalName = routineName self._hasSourceCode = True self._structuredCode = [] - self._objType="Routine" + self._objType = "Routine" + + def getObjectType(self): + return self._objType + def setName(self, routineName): self._name = routineName def getName(self): @@ -766,6 +770,8 @@ def __init__(self, globalName, self._totalReferencedRoutines = 0 self._totalReferencedGlobals = 0 self._totalReferredGlobals = 0 + self._objType = "Global" + def setName(self, globalName): self._name = globalName def getName(self): @@ -843,8 +849,10 @@ def isFileManFile(self): return self.getFileNo() != None def getPackage(self): return self._package + def getObjectType(self): - return "Global" + return self._objType + #=========================================================================== # operator #=========================================================================== @@ -1454,11 +1462,11 @@ def __categorizeVariableNameByNamespace__(self, variableName, isGlobal = False): if hasMatch: return (matchNamespace, package) return (None, None) + def routineHasSourceCodeByName(self, routineName): routine = self.getRoutineByName(routineName) - if "getObjectType" in dir(routine): - return True return routine and routine.hasSourceCode() + def __generatePlatformDependentRoutineDependencies__(self): for genericRoutine in self._platformDepRoutines.itervalues(): genericRoutine.setHasSourceCode(False) diff --git a/Utilities/Dox/PythonScripts/WebPageGenerator.py b/Utilities/Dox/PythonScripts/WebPageGenerator.py index 60af086fa..6aa66bce6 100755 --- a/Utilities/Dox/PythonScripts/WebPageGenerator.py +++ b/Utilities/Dox/PythonScripts/WebPageGenerator.py @@ -2193,10 +2193,11 @@ def generateAllSourceCodePage(self): def getPackageComponentDisplayName(self, routine): routineName = routine.getName() if "componentType" in dir(routine): - componentType = routine.componentType.strip() - if componentType in COMPONENT_TYPE_DICT: - return "%s(%s)" % (routineName, componentType) + componentType = routine.componentType.strip() + if componentType in COMPONENT_TYPE_DICT: + return "%s(%s)" % (routineName, COMPONENT_TYPE_DICT[componentType]) return routineName + #=============================================================================== # utility method to show routine name #=============================================================================== @@ -2447,7 +2448,7 @@ def generateTablizedItemList(self, sortedItemList, outputFile, htmlMappingFunc, linkName = htmlMappingFunc(displayName, keyVal) if nameFunc: displayName = nameFunc(displayName) - outputFile.write("