Package lxml :: Module etree :: Class XSLTAccessControl

[hide private]
[frames] | no frames]

# 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.

Instance Methods | [hide private]

__init__(self, read_file=True, write_file=True, create_dir=True, read_network=True, write_network=True) x.__init__(...) initializes x; see x.__class__.__doc__ for signature |

a new object with type S, a subtype of T

__new__(T, S, ...) |

__repr__(...) repr(x) |

Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__reduce__`, `__reduce_ex__`, `__setattr__`, `__str__`

Class Variables | [hide private]

| DENY_ALL = `XSLTAccessControl(create_dir=False, read_file=False`...``
| DENY_WRITE = `XSLTAccessControl(create_dir=False, read_file=Tru`...``

Properties | [hide private]

| options The access control configuration as a map of options.
Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, read_file=True, write_file=True, create_dir=True, read_network=True, write_network=True)
(Constructor)

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__

### __new__(T, S, ...)

Returns: a new object with type S, a subtype of T
Overrides: object.__new__

### __repr__(...)
(Representation operator)

repr(x)

Overrides: object.__repr__
  (inherited documentation)

Class Variable Details | [hide private]

### 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)