-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated to v0.7.4
- Loading branch information
Showing
23 changed files
with
3,807 additions
and
3,179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.7.3 | ||
0.7.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# add additional arguments to the parser | ||
|
||
# the config must be imported from pyroboxCore | ||
# from pyroboxCore import config | ||
|
||
def main(config): | ||
config.parser.add_argument('--password', '-k', | ||
default=config.PASSWORD, | ||
type=str, | ||
help='Upload Password (default: %(default)s)') | ||
|
||
config.parser.add_argument('--no-upload', '-nu', | ||
action='store_true', | ||
default=False, | ||
help="Files can't be uploaded (default: %(default)s)") | ||
|
||
config.parser.add_argument('--no-zip', '-nz', | ||
action='store_true', | ||
default=False, | ||
help="Disable Folder->Zip downloading (default: %(default)s)") | ||
|
||
config.parser.add_argument('--no-update', '-no', | ||
action='store_true', | ||
default=False, | ||
help="Disable File Updating (ie: renaming, overwriting existing files) (On upload, if file exists, will add a number at the end(default: %(default)s)") | ||
|
||
config.parser.add_argument('--no-delete', '-nd', | ||
action='store_true', | ||
default=False, | ||
help="Disable File Deletion (default: %(default)s)") | ||
|
||
config.parser.add_argument('--no-download', '-ndw', | ||
action='store_true', | ||
default=False, | ||
help="Disable File Downloading [videos won't play either] (default: %(default)s)") | ||
|
||
config.parser.add_argument('--read-only', '-ro', | ||
action='store_true', | ||
default=False, | ||
help='Read Only Mode *disables upload and any modifications ie: rename, delete* (default: %(default)s)') | ||
|
||
config.parser.add_argument('--view-only', '-vo', | ||
action='store_true', | ||
default=False, | ||
help="Only allowed to see file list, nothing else (default: %(default)s)") | ||
|
||
|
||
# config.parser.add_argument('--no-js', '-nj', | ||
# action='store_true', | ||
# default=False, | ||
# help="Disable Javascript in page(default: %(default)s)") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
class LimitExceed(Exception): | ||
def __init__(self, *args, **kwargs): | ||
super().__init__(*args, **kwargs) |
Oops, something went wrong.