Disable options filtering by default

But still provide sample code
master
pictuga 2015-02-21 02:01:32 +08:00
parent 149117029c
commit 5c23f90f0b
1 changed files with 7 additions and 3 deletions

View File

@ -57,10 +57,14 @@ if 'SCRIPT_NAME' in os.environ:
def filterOptions(options):
allowed = ['proxy', 'clip', 'keep', 'cache', 'force', 'silent', 'pro', 'debug']
filtered = dict([(key,value) for (key,value) in options.items() if key in allowed])
return options
return filtered
# example of filtering code below
#allowed = ['proxy', 'clip', 'keep', 'cache', 'force', 'silent', 'pro', 'debug']
#filtered = dict([(key,value) for (key,value) in options.items() if key in allowed])
#return filtered
class MorssException(Exception):