Ejemplo n.º 1
0
def loadPublicTuples():
    for mod in filterModules(__name__, __file__):
        __import__(mod, locals(), globals())

    from . import login
    from . import import_

    login.loadTuples()
    import_.loadTuples()
Ejemplo n.º 2
0
def loadPrivateTuples():
    """ Load Private Tuples

    In this method, we load the private tuples.
    This registers them so the Vortex can reconstructed them from
    serialised data.

    """
    for mod in filterModules(__name__, __file__):
        __import__(mod, locals(), globals())
Ejemplo n.º 3
0
def loadStorageTuples():

    """ Load Storage Tables

    This method should be called from the "load()" method of the agent, server, worker
    and client entry hook classes.

    This will register the ORM classes as tuples, allowing them to be serialised and
    deserialized by the vortex.

    """
    # Import the disp links first for the SQLA Mapper
    from . import LiveDbDispLink

    for mod in filterModules(__package__, __file__):
        if mod.startswith("Declarative"):
            continue
        __import__(mod, locals(), globals())

    for mod in filterModules(branch.__package__, branch.__file__):
        __import__(mod, locals(), globals())
Ejemplo n.º 4
0
def loadPrivateTuples():
    """ Load Private Tuples

    In this method, we load the private tuples.
    This registers them so the Vortex can reconstructed them from
    serialised data.

    """
    for mod in filterModules(__name__, __file__):
        __import__(mod, locals(), globals())

    from peek_plugin_diagram._private.tuples import grid
    for mod in filterModules(grid.__name__, grid.__file__):
        __import__(mod, locals(), globals())

    from peek_plugin_diagram._private.tuples import branch
    for mod in filterModules(branch.__name__, branch.__file__):
        __import__(mod, locals(), globals())

    from peek_plugin_diagram._private.tuples import location_index
    for mod in filterModules(location_index.__name__, location_index.__file__):
        __import__(mod, locals(), globals())
Ejemplo n.º 5
0
def loadPublicTuples():
    """ Load Public Tuples

    In this method, we load the public tuples.
    This registers them so the Vortex can reconstructed them from
    serialised data.

    """

    for mod in filterModules(__name__, __file__):
        __import__(mod, locals(), globals())

    from .branches import loadPublicBranchTuples
    loadPublicBranchTuples()

    from .lookups import loadLookupTuples
    loadLookupTuples()

    from .shapes import loadShapeTuples
    loadShapeTuples()

    from .model import loadModelTuples
    loadModelTuples()
Ejemplo n.º 6
0
def loadShapeTuples():

    for mod in filterModules(__name__, __file__):
        __import__(mod, locals(), globals())
Ejemplo n.º 7
0
__author__ = 'peek'
__version__ = '0.0.6dev123456'

from txhttputil.util.ModuleUtil import filterModules

for mod in filterModules(__name__, __file__):
    __import__(mod, locals(), globals())


def importPackages():
    from . import backend
    from . import papp
    from . import sw_install

Ejemplo n.º 8
0
def loadPublicBranchTuples():

    for mod in filterModules(__name__, __file__):
        __import__(mod, locals(), globals())