class documentation
This will by default disallow everything, except for 'none'.
Method | __init__ |
SecurityOptions() initialize. |
Method | allow |
Allow all `basic' types. (Dictionary and list. Int, string, and float are implicitly allowed.) |
Method | allow |
SecurityOptions.allowInstances(klass, klass, ...): allow instances of the specified classes |
Method | allow |
SecurityOptions.allowModules(module, module, ...): allow modules by name. This will also allow the 'module' type. |
Method | allow |
SecurityOptions.allowTypes(typeString): Allow a particular type, by its name. |
Method | is |
SecurityOptions.isClassAllowed(class) -> boolean Assumes the module has already been allowed. Returns 1 if the given class is allowed, 0 otherwise. |
Method | is |
SecurityOptions.isModuleAllowed(moduleName) -> boolean returns 1 if a module by that name is allowed, 0 otherwise |
Method | is |
SecurityOptions.isTypeAllowed(typeName) -> boolean Returns 1 if the given type is allowed, 0 otherwise. |
Class Variable | basic |
Undocumented |
Instance Variable | allowed |
Undocumented |
Instance Variable | allowed |
Undocumented |
Instance Variable | allowed |
Undocumented |
SecurityOptions.allowInstances(klass, klass, ...): allow instances of the specified classes
This will also allow the 'instance', 'class' (renamed 'classobj' in Python 2.3), and 'module' types, as well as basic types.
SecurityOptions.allowModules(module, module, ...): allow modules by name. This will also allow the 'module' type.
SecurityOptions.isClassAllowed(class) -> boolean Assumes the module has already been allowed. Returns 1 if the given class is allowed, 0 otherwise.
SecurityOptions.isModuleAllowed(moduleName) -> boolean returns 1 if a module by that name is allowed, 0 otherwise