Ejemplo n.º 1
0
def getObjects():
    """ Load all EMObject subclasses found in EM-packages. """
    global _emObjectsDict
    if _emObjectsDict is None:
        _emObjectsDict = getSubclassesFromModules(EMObject, getPackages())
        _emObjectsDict.update(getSubclasses(EMObject, globals()))
    return _emObjectsDict
Ejemplo n.º 2
0
def getProtocols():
    """ Load all protocols subclasses defined in all em-packages. """
    global _emProtocolsDict
    if _emProtocolsDict is None:
        _emProtocolsDict = getSubclassesFromModules(Protocol, getPackages())
        _emProtocolsDict.update(getSubclasses(Protocol, globals()))
    return _emProtocolsDict
Ejemplo n.º 3
0
def getObjects():
    """ Load all EMObject subclasses found in EM-packages. """
    global _emObjectsDict
    if _emObjectsDict is None:        
        _emObjectsDict = getSubclassesFromModules(EMObject, getPackages())
        _emObjectsDict.update(getSubclasses(EMObject, globals()))
    return _emObjectsDict
Ejemplo n.º 4
0
def getProtocols():
    """ Load all protocols subclasses defined in all em-packages. """
    global _emProtocolsDict
    if _emProtocolsDict is None:
        _emProtocolsDict = getSubclassesFromModules(Protocol, getPackages())
        _emProtocolsDict.update(getSubclasses(Protocol, globals()))
    return _emProtocolsDict
Ejemplo n.º 5
0
def getWizards():
    """ Load all subclasses of Wizards. """
    global _emWizardsDict
    if _emWizardsDict is None:
        _emWizardsDict = getSubclassesFromModules(Wizard, getPackages())
    return _emWizardsDict
Ejemplo n.º 6
0
def getViewers():
    """ Load all subclasses of Viewer of different packages. """
    global _emViewersDict
    if _emViewersDict is None:
        _emViewersDict = getSubclassesFromModules(Viewer, getPackages())
    return _emViewersDict
Ejemplo n.º 7
0
def getWizards():
    """ Load all subclasses of Wizards. """
    global _emWizardsDict
    if _emWizardsDict is None:
        _emWizardsDict = getSubclassesFromModules(Wizard, getPackages())
    return _emWizardsDict
Ejemplo n.º 8
0
def getViewers():
    """ Load all subclasses of Viewer of different packages. """
    global _emViewersDict
    if _emViewersDict is None:
        _emViewersDict = getSubclassesFromModules(Viewer, getPackages())
    return _emViewersDict