예제 #1
0
파일: admin.py 프로젝트: Jbaumotte/web2py
def plugin_pack(app, plugin_name, request):
    """
    Builds a w2p package for the application

    Parameters
    ----------
    app:
        application name
    plugin_name:
        the name of the plugin without plugin_ prefix
    request:
        the current request app

    Returns
    -------
    filename:
        filename of the w2p file or None on error
    """
    try:
        filename = apath(
            '../deposit/web2py.plugin.%s.w2p' % plugin_name, request)
        w2p_pack_plugin(filename, apath(app, request), plugin_name)
        return filename
    except Exception:
        return False
예제 #2
0
파일: admin.py 프로젝트: ducmanh86/web2py
def plugin_pack(app, plugin_name, request):
    """
    Builds a w2p package for the application

    Parameters
    ----------
    app:
        application name
    plugin_name:
        the name of the plugin without plugin_ prefix
    request:
        the current request app

    Returns
    -------
    filename:
        filename of the w2p file or None on error
    """
    try:
        filename = apath('../deposit/web2py.plugin.%s.w2p' % plugin_name,
                         request)
        w2p_pack_plugin(filename, apath(app, request), plugin_name)
        return filename
    except Exception:
        return False
예제 #3
0
파일: admin.py 프로젝트: nicozanf/web2py
def plugin_pack(app, plugin_name, request):
    """Builds a w2p package for the plugin

    Args:
        app(str): application name
        plugin_name(str): the name of the plugin without plugin_ prefix
        request: the current request app

    Returns:
        filename of the w2p file or False on error

    """
    try:
        filename = apath("../deposit/web2py.plugin.%s.w2p" % plugin_name, request)
        w2p_pack_plugin(filename, apath(app, request), plugin_name)
        return filename
    except Exception:
        return False
예제 #4
0
def plugin_pack(app, plugin_name, request):
    """Builds a w2p package for the plugin

    Args:
        app(str): application name
        plugin_name(str): the name of the plugin without `plugin_` prefix
        request: the current request app

    Returns:
        filename of the w2p file or False on error

    """
    try:
        filename = apath('../deposit/web2py.plugin.%s.w2p' % plugin_name,
                         request)
        w2p_pack_plugin(filename, apath(app, request), plugin_name)
        return filename
    except Exception:
        return False
예제 #5
0
def pack():
    filename = "web2py.plugin.%s.w2p" % plugin_name
    packed_plugin = dropbox/filename
    w2p_pack_plugin(packed_plugin, root, plugin_name)
    return packed_plugin
예제 #6
0
def pack():
    filename = "web2py.plugin.%s.w2p" % plugin_name
    packed_plugin = dropbox / filename
    w2p_pack_plugin(packed_plugin, root, plugin_name)
    return packed_plugin