From 8b850d64a14d7c8d691c4ec08bb9a3daf9a3dfa2 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Fri, 10 Apr 2015 17:52:35 +0200 Subject: Cleanup --- pyload/__init__.py | 4 +- pyload/config/Parser.py | 4 +- pyload/manager/Addon.py | 2 +- pyload/manager/Plugin.py | 2 +- pyload/plugin/Plugin.py | 2 +- pyload/webui/app/pyloadweb.py | 16 +++--- pyload/webui/themes/Next/tml/base.html | 70 +++++++++++++-------------- pyload/webui/themes/Next/tml/captcha.html | 64 ++++++++++++------------ pyload/webui/themes/Next/tml/filemanager.html | 48 +++++++++--------- pyload/webui/themes/Next/tml/folder.html | 10 ++-- pyload/webui/themes/Next/tml/home.html | 16 +++--- pyload/webui/themes/Next/tml/pathchooser.html | 22 ++++----- 12 files changed, 130 insertions(+), 130 deletions(-) diff --git a/pyload/__init__.py b/pyload/__init__.py index 39f6c8bee..e29c81ad7 100644 --- a/pyload/__init__.py +++ b/pyload/__init__.py @@ -84,9 +84,9 @@ try: except IOError: if os.name == "posix": - configdir = os.path.join(homedir, ".pyload-beta") + configdir = os.path.join(homedir, ".pyload") else: - configdir = os.path.join(homedir, "pyload-beta") + configdir = os.path.join(homedir, "pyload") try: if not os.path.exists(configdir): diff --git a/pyload/config/Parser.py b/pyload/config/Parser.py index 84c08f17c..9682b38b6 100644 --- a/pyload/config/Parser.py +++ b/pyload/config/Parser.py @@ -300,8 +300,8 @@ class ConfigParser(object): if not name in plugins: print "delete config " + name del self.plugin[name] - - + + def getMetaData(self, section, option): """ get all config data for an option """ return self.config[section][option] diff --git a/pyload/manager/Addon.py b/pyload/manager/Addon.py index 0bd51c943..26a2735cf 100644 --- a/pyload/manager/Addon.py +++ b/pyload/manager/Addon.py @@ -110,7 +110,7 @@ class AddonManager(object): pluginClass = self.core.pluginManager.loadClass(type, pluginname) if not pluginClass: continue - + plugin = pluginClass(self.core, self) plugins.append(plugin) self.pluginMap[pluginClass.__name__] = plugin diff --git a/pyload/manager/Plugin.py b/pyload/manager/Plugin.py index 222ed9c93..739fa3538 100644 --- a/pyload/manager/Plugin.py +++ b/pyload/manager/Plugin.py @@ -55,7 +55,7 @@ class PluginManager(object): sys.path.append(abspath("")) self.loadTypes() - + configs = [] for type in self.TYPES: diff --git a/pyload/plugin/Plugin.py b/pyload/plugin/Plugin.py index 486dbeb0f..6a39507fd 100644 --- a/pyload/plugin/Plugin.py +++ b/pyload/plugin/Plugin.py @@ -88,7 +88,7 @@ class Base(object): def getPluginConfSection(self): - return "%s_%s" % (self.__class__.__name__, getattr(self, "_%s__type" % self.__class__.__name__)) + return "%s_%s" % (self.__class__.__name__, getattr(self, "_%s__type" % self.__class__.__name__)) #: Deprecated method diff --git a/pyload/webui/app/pyloadweb.py b/pyload/webui/app/pyloadweb.py index d71d0d306..85f3f8ca1 100644 --- a/pyload/webui/app/pyloadweb.py +++ b/pyload/webui/app/pyloadweb.py @@ -517,14 +517,14 @@ def info(): else: extra = tuple() - data = {"python": sys.version, - "os": " ".join((os.name, sys.platform) + extra), - "version": PYLOAD.getServerVersion(), - "folder": abspath(PYLOAD_DIR), "config": abspath(""), - "download": abspath(conf["general"]["download_folder"]["value"]), + data = {"python" : sys.version, + "os" : " ".join((os.name, sys.platform) + extra), + "version" : PYLOAD.getServerVersion(), + "folder" : abspath(PYLOAD_DIR), "config": abspath(""), + "download" : abspath(conf["general"]["download_folder"]["value"]), "freespace": formatSize(PYLOAD.freeSpace()), - "remote": conf["remote"]["port"]["value"], - "webif": conf["webinterface"]["port"]["value"], - "language": conf["general"]["language"]["value"]} + "remote" : conf["remote"]["port"]["value"], + "webif" : conf["webui"]["port"]["value"], + "language" : conf["general"]["language"]["value"]} return render_to_response("info.html", data, [pre_processor]) diff --git a/pyload/webui/themes/Next/tml/base.html b/pyload/webui/themes/Next/tml/base.html index 750c855be..1bc2ea3b3 100644 --- a/pyload/webui/themes/Next/tml/base.html +++ b/pyload/webui/themes/Next/tml/base.html @@ -54,13 +54,13 @@ - + {% else %} {{_("Please Login!")}} {% endif %} {% endblock %} - + -
+
{% if perms.STATUS %} @@ -167,7 +167,7 @@ {% block statusbar %} {% endblock %} {% for message in messages %} -

{{message}}

+

{{message}}

{% endfor %}
@@ -178,7 +178,7 @@ {% block content %} {% endblock content %} -
+