Table of Contents

Class: SecurityOptions Twisted-0.19.0/twisted/spread/jelly.py

This will by default disallow everything, except for none.

Methods   
__init__
allowBasicTypes
allowInstancesOf
allowModules
allowTypes
isClassAllowed
isModuleAllowed
isTypeAllowed
  __init__ 
__init__ ( self )

SecurityOptions() Initialize.

  allowBasicTypes 
allowBasicTypes ( self )

SecurityOptions.allowBasicTypes() Allow all `basic' types. (Dictionary and list. Int, string, and float are implicitly allowed.)

  allowInstancesOf 
allowInstancesOf ( self,  *classes )

SecurityOptions.allowInstances(klass, klass, ...): allow instances of the specified classes This will also allow the instance, class, and module types, as well as basic types.

  allowModules 
allowModules ( self,  *modules )

SecurityOptions.allowModules(module, module, ...): allow modules by name This will also allow the module type.

  allowTypes 
allowTypes ( self,  *types )

SecurityOptions.allowTypes(typeString): Allow a particular type, by its name.

  isClassAllowed 
isClassAllowed ( self,  klass )

SecurityOptions.isClassAllowed(class) -> boolean Assumes the module has already been allowed. Returns 1 if the given class is allowed, 0 otherwise.

  isModuleAllowed 
isModuleAllowed ( self,  moduleName )

SecurityOptions.isModuleAllowed(moduleName) -> boolean returns 1 if a module by that name is allowed, 0 otherwise

  isTypeAllowed 
isTypeAllowed ( self,  typeName )

SecurityOptions.isTypeAllowed(typeName) -> boolean Returns 1 if the given type is allowed, 0 otherwise.


Table of Contents

This document was automatically generated on Sun Jul 14 19:53:20 2002 by HappyDoc version 2.0