Class XSLTAccessControl
object --+
|
XSLTAccessControl
XSLTAccessControl(self, read_file=True, write_file=True, create_dir=True, read_network=True, write_network=True)
Access control for XSLT: reading/writing files, directories and
network I/O. Access to a type of resource is granted or denied by
passing any of the following boolean keyword arguments. All of
them default to True to allow access.
- read_file
- write_file
- create_dir
- read_network
- write_network
For convenience, there is also a class member DENY_ALL that
provides an XSLTAccessControl instance that is readily configured
to deny everything, and a DENY_WRITE member that denies all
write access but allows read access.
See XSLT.
|
__init__(self,
read_file=True,
write_file=True,
create_dir=True,
read_network=True,
write_network=True)
x.__init__(...) initializes x; see help(type(x)) for signature |
|
|
a new object with type S, a subtype of T
|
|
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|
|
DENY_ALL = XSLTAccessControl(create_dir=False, read_file=False...
|
|
DENY_WRITE = XSLTAccessControl(create_dir=False, read_file=Tru...
|
|
options
The access control configuration as a map of options.
|
Inherited from object :
__class__
|
__init__(self,
read_file=True,
write_file=True,
create_dir=True,
read_network=True,
write_network=True)
(Constructor)
|
|
x.__init__(...) initializes x; see help(type(x)) for signature
- Overrides:
object.__init__
|
- Returns: a new object with type S, a subtype of T
- Overrides:
object.__new__
|
__repr__(x)
(Representation operator)
|
|
repr(x)
- Overrides:
object.__repr__
|
DENY_ALL
- Value:
XSLTAccessControl(create_dir=False, read_file=False, read_network=Fals
e, write_file=False, write_network=False)
|
|
DENY_WRITE
- Value:
XSLTAccessControl(create_dir=False, read_file=True, read_network=True,
write_file=False, write_network=False)
|
|