Disable options filtering by default
But still provide sample code
This commit is contained in:
		@@ -57,10 +57,14 @@ if 'SCRIPT_NAME' in os.environ:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def filterOptions(options):
 | 
					def filterOptions(options):
 | 
				
			||||||
    allowed = ['proxy', 'clip', 'keep', 'cache', 'force', 'silent', 'pro', 'debug']
 | 
					    return options
 | 
				
			||||||
    filtered = dict([(key,value) for (key,value) in options.items() if key in allowed])
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    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):
 | 
					class MorssException(Exception):
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user