diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-01-14 15:49:08 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-01-14 15:49:08 +0100 |
commit | 828cc89cc9b7a2ecacf98fc73928d988e15f0b98 (patch) | |
tree | 5cbf3274b7bfe365a89442f26fbfe230311d3785 /module | |
parent | cosmetic fixes (diff) | |
download | pyload-828cc89cc9b7a2ecacf98fc73928d988e15f0b98.tar.xz |
captcha and attachments for plugin tester
Diffstat (limited to 'module')
-rw-r--r-- | module/plugins/Base.py | 9 | ||||
-rw-r--r-- | module/utils/fs.py | 4 |
2 files changed, 9 insertions, 4 deletions
diff --git a/module/plugins/Base.py b/module/plugins/Base.py index 1477356ea..53840ee18 100644 --- a/module/plugins/Base.py +++ b/module/plugins/Base.py @@ -36,7 +36,7 @@ class Base(object): The Base plugin class with all shared methods and every possible attribute for plugin definition. """ __version__ = "0.1" - #: Regexp pattern which will be matched for download plugins + #: Regexp pattern which will be matched for download/crypter plugins __pattern__ = r"" #: Config definition: list of (name, type, verbose_name, default_value) or #: (name, type, verbose_name, short_description, default_value) @@ -55,6 +55,11 @@ class Base(object): __icon_url__ = "" #: Url with general information/support/discussion __url__ = "" + #: Url to term of content, user is accepting these when using the plugin + __toc_url__ = "" + #: Url to service (to buy premium) for accounts + __ref_url__ = "" + __author_name__ = tuple() __author_mail__ = tuple() @@ -153,7 +158,7 @@ class Base(object): :param url: url as string :param get: GET as dict - :param post: POST as dict + :param post: POST as dict, list or string :param ref: Set HTTP_REFERER header :param cookies: use saved cookies :param just_header: if True only the header will be retrieved and returned as dict diff --git a/module/utils/fs.py b/module/utils/fs.py index c1927423a..350283275 100644 --- a/module/utils/fs.py +++ b/module/utils/fs.py @@ -35,7 +35,7 @@ def remove(path): def exists(path): return os.path.exists(fs_encode(path)) -def makedirs(path, mode=0777): +def makedirs(path, mode=0755): return os.makedirs(fs_encode(path), mode) def listdir(path): @@ -68,4 +68,4 @@ def free_space(folder): from os import statvfs s = statvfs(folder) - return s.f_bsize * s.f_bavail
\ No newline at end of file + return s.f_bsize * s.f_bavail |