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
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
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
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
def pack(): filename = "web2py.plugin.%s.w2p" % plugin_name packed_plugin = dropbox/filename w2p_pack_plugin(packed_plugin, root, plugin_name) return packed_plugin
def pack(): filename = "web2py.plugin.%s.w2p" % plugin_name packed_plugin = dropbox / filename w2p_pack_plugin(packed_plugin, root, plugin_name) return packed_plugin