Пример #1
0
def app_factory(klass, user):
    """
        assemble the plugins
        return a Pychron TaskApplication
    """
    pychron_plugin = PychronTasksPlugin()

    plugins = [
        CorePlugin(),
        myTasksPlugin(),
        pychron_plugin,
        # FoobotPlugin(),
        LoggerPlugin(),
        UsersPlugin()
    ]

    # if UpdatePlugin is not None:
    #     plugins.append(UpdatePlugin())

    plugins += get_hardware_plugins()
    plugins += get_user_plugins()

    app = klass(username=user, plugins=plugins)

    # set key bindings
    update_key_bindings(pychron_plugin.actions)

    return app
Пример #2
0
def app_factory(klass, user):
    """
        assemble the plugins
        return a Pychron TaskApplication
    """
    pychron_plugin = PychronTasksPlugin()
    plugins = [
        CorePlugin(),
        myTasksPlugin(),
        pychron_plugin,
        # FoobotPlugin(),
        LoggerPlugin()]

    # if UpdatePlugin is not None:
    #     plugins.append(UpdatePlugin())

    plugins += get_hardware_plugins()
    plugins += get_user_plugins()

    app = klass(username=user, plugins=plugins)

    #set key bindings
    update_key_bindings(pychron_plugin.actions)

    return app
Пример #3
0
def app_factory(klass):
    """
        assemble the plugins
        return a Pychron TaskApplication
    """
    plugins = [
        CorePlugin(),
        myTasksPlugin(),
        LoggerPlugin(),
        ]

    if UpdatePlugin is not None:
        plugins.append(UpdatePlugin())

    plugins += get_hardware_plugins()
    plugins += get_user_plugins()

    app = klass(plugins=plugins)
    return app
Пример #4
0
def app_factory(klass):
    """
        assemble the plugins
        return a Pychron TaskApplication
    """
    pychron_plugin = PychronTasksPlugin()

    plugins = [CorePlugin(),
               myTasksPlugin(),
               pychron_plugin,
               LoggerPlugin(),
               UsersPlugin()]

    plugins += get_hardware_plugins()
    plugins += get_user_plugins()

    app = klass(plugins=plugins)

    # set key bindings
    update_key_bindings(pychron_plugin.actions)

    return app