Ticket #1567: 0001-prefix-base-js-for-plugins.patch

File 0001-prefix-base-js-for-plugins.patch, 1.1 KB (added by wump, 14 years ago)

patch

  • deluge/ui/web/pluginmanager.py

    From 36754be64076674f6f61365df4f99396b7de1da7 Mon Sep 17 00:00:00 2001
    From: Wladimir J. van der Laan <laanwj@gmail.com>
    Date: Sun, 27 Feb 2011 21:17:25 +0100
    Subject: [PATCH] prefix/base js for plugins
    
    ---
     deluge/ui/web/pluginmanager.py |    4 ++--
     1 files changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/deluge/ui/web/pluginmanager.py b/deluge/ui/web/pluginmanager.py
    index d247e07..7b4d244 100644
    a b def get_plugin_resources(self, name):  
    146146            return
    147147        info = gather_info(plugin)
    148148        info["name"] = name
    149         info["scripts"] = ["/js/%s/%s" % (name.lower(), os.path.basename(s)) for s in info["scripts"]]
    150         info["debug_scripts"] = ["/js/%s/%s" % (name.lower(), os.path.basename(s)) for s in info["debug_scripts"]]
     149        info["scripts"] = ["js/%s/%s" % (name.lower(), os.path.basename(s)) for s in info["scripts"]]
     150        info["debug_scripts"] = ["js/%s/%s" % (name.lower(), os.path.basename(s)) for s in info["debug_scripts"]]
    151151        del info["script_directories"]
    152152        return info