1 <?xml version="1.0" encoding="ascii"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3 "DTD/xhtml1-transitional.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6 <title>lxml.etree.XSLTAccessControl</title>
7 <link rel="stylesheet" href="epydoc.css" type="text/css" />
8 <script type="text/javascript" src="epydoc.js"></script>
11 <body bgcolor="white" text="black" link="blue" vlink="#204080"
13 <!-- ==================== NAVIGATION BAR ==================== -->
14 <table class="navbar" border="0" width="100%" cellpadding="0"
15 bgcolor="#a0c0ff" cellspacing="0">
18 <th> <a
19 href="lxml-module.html">Home</a> </th>
22 <th> <a
23 href="module-tree.html">Trees</a> </th>
26 <th> <a
27 href="identifier-index.html">Indices</a> </th>
30 <th> <a
31 href="help.html">Help</a> </th>
33 <!-- Project homepage -->
34 <th class="navbar" align="right" width="100%">
35 <table border="0" cellpadding="0" cellspacing="0">
36 <tr><th class="navbar" align="center"
37 ><a class="navbar" target="_top" href="/">lxml API</a></th>
41 <table width="100%" cellpadding="0" cellspacing="0">
44 <span class="breadcrumbs">
45 <a href="lxml-module.html">Package lxml</a> ::
46 <a href="lxml.etree-module.html">Module etree</a> ::
47 Class XSLTAccessControl
51 <table cellpadding="0" cellspacing="0">
52 <!-- hide/show private -->
53 <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
54 onclick="toggle_private();">hide private</a>]</span></td></tr>
55 <tr><td align="right"><span class="options"
56 >[<a href="frames.html" target="_top">frames</a
57 >] | <a href="lxml.etree.XSLTAccessControl-class.html"
58 target="_top">no frames</a>]</span></td></tr>
63 <!-- ==================== CLASS DESCRIPTION ==================== -->
64 <h1 class="epydoc">Class XSLTAccessControl</h1><p class="nomargin-top"></p>
65 <pre class="base-tree">
68 <strong class="uidshort">XSLTAccessControl</strong>
72 <p>XSLTAccessControl(self, read_file=True, write_file=True, create_dir=True, read_network=True, write_network=True)</p>
73 <p>Access control for XSLT: reading/writing files, directories and
74 network I/O. Access to a type of resource is granted or denied by
75 passing any of the following boolean keyword arguments. All of
76 them default to True to allow access.</p>
77 <ul class="rst-simple">
82 <li>write_network</li>
84 <p>For convenience, there is also a class member <a href="lxml.etree.XSLTAccessControl-class.html#DENY_ALL" class="link">DENY_ALL</a> that
85 provides an XSLTAccessControl instance that is readily configured
86 to deny everything, and a <a href="lxml.etree.XSLTAccessControl-class.html#DENY_WRITE" class="link">DENY_WRITE</a> member that denies all
87 write access but allows read access.</p>
88 <p>See <a href="lxml.etree.XSLT-class.html" class="link">XSLT</a>.</p>
90 <!-- ==================== INSTANCE METHODS ==================== -->
91 <a name="section-InstanceMethods"></a>
92 <table class="summary" border="1" cellpadding="3"
93 cellspacing="0" width="100%" bgcolor="white">
94 <tr bgcolor="#70b0f0" class="table-header">
95 <td colspan="2" class="table-header">
96 <table border="0" cellpadding="0" cellspacing="0" width="100%">
98 <td align="left"><span class="table-header">Instance Methods</span></td>
99 <td align="right" valign="top"
100 ><span class="options">[<a href="#section-InstanceMethods"
101 class="privatelink" onclick="toggle_private();"
102 >hide private</a>]</span></td>
108 <td width="15%" align="right" valign="top" class="summary">
109 <span class="summary-type"> </span>
110 </td><td class="summary">
111 <table width="100%" cellpadding="0" cellspacing="0" border="0">
113 <td><span class="summary-sig"><a href="lxml.etree.XSLTAccessControl-class.html#__init__" class="summary-sig-name">__init__</a>(<span class="summary-sig-arg">self</span>,
114 <span class="summary-sig-arg">read_file</span>=<span class="summary-sig-default">True</span>,
115 <span class="summary-sig-arg">write_file</span>=<span class="summary-sig-default">True</span>,
116 <span class="summary-sig-arg">create_dir</span>=<span class="summary-sig-default">True</span>,
117 <span class="summary-sig-arg">read_network</span>=<span class="summary-sig-default">True</span>,
118 <span class="summary-sig-arg">write_network</span>=<span class="summary-sig-default">True</span>)</span><br />
119 x.__init__(...) initializes x; see help(type(x)) for signature</td>
120 <td align="right" valign="top">
130 <td width="15%" align="right" valign="top" class="summary">
131 <span class="summary-type">a new object with type S, a subtype of T</span>
132 </td><td class="summary">
133 <table width="100%" cellpadding="0" cellspacing="0" border="0">
135 <td><span class="summary-sig"><a href="lxml.etree.XSLTAccessControl-class.html#__new__" class="summary-sig-name">__new__</a>(<span class="summary-sig-arg">T</span>,
136 <span class="summary-sig-arg">S</span>,
137 <span class="summary-sig-arg">...</span>)</span></td>
138 <td align="right" valign="top">
148 <td width="15%" align="right" valign="top" class="summary">
149 <span class="summary-type"> </span>
150 </td><td class="summary">
151 <table width="100%" cellpadding="0" cellspacing="0" border="0">
153 <td><span class="summary-sig"><a href="lxml.etree.XSLTAccessControl-class.html#__repr__" class="summary-sig-name">__repr__</a>(<span class="summary-sig-arg">x</span>)</span><br />
155 <td align="right" valign="top">
165 <td colspan="2" class="summary">
166 <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
167 <code>__delattr__</code>,
168 <code>__format__</code>,
169 <code>__getattribute__</code>,
170 <code>__hash__</code>,
171 <code>__reduce__</code>,
172 <code>__reduce_ex__</code>,
173 <code>__setattr__</code>,
174 <code>__sizeof__</code>,
175 <code>__str__</code>,
176 <code>__subclasshook__</code>
181 <!-- ==================== CLASS VARIABLES ==================== -->
182 <a name="section-ClassVariables"></a>
183 <table class="summary" border="1" cellpadding="3"
184 cellspacing="0" width="100%" bgcolor="white">
185 <tr bgcolor="#70b0f0" class="table-header">
186 <td colspan="2" class="table-header">
187 <table border="0" cellpadding="0" cellspacing="0" width="100%">
189 <td align="left"><span class="table-header">Class Variables</span></td>
190 <td align="right" valign="top"
191 ><span class="options">[<a href="#section-ClassVariables"
192 class="privatelink" onclick="toggle_private();"
193 >hide private</a>]</span></td>
199 <td width="15%" align="right" valign="top" class="summary">
200 <span class="summary-type"> </span>
201 </td><td class="summary">
202 <a href="lxml.etree.XSLTAccessControl-class.html#DENY_ALL" class="summary-name">DENY_ALL</a> = <code title="XSLTAccessControl(create_dir=False, read_file=False, read_network=Fals\
203 e, write_file=False, write_network=False)">XSLTAccessControl(create_dir=False, read_file=False<code class="variable-ellipsis">...</code></code>
207 <td width="15%" align="right" valign="top" class="summary">
208 <span class="summary-type"> </span>
209 </td><td class="summary">
210 <a href="lxml.etree.XSLTAccessControl-class.html#DENY_WRITE" class="summary-name">DENY_WRITE</a> = <code title="XSLTAccessControl(create_dir=False, read_file=True, read_network=True,\
211 write_file=False, write_network=False)">XSLTAccessControl(create_dir=False, read_file=Tru<code class="variable-ellipsis">...</code></code>
215 <!-- ==================== PROPERTIES ==================== -->
216 <a name="section-Properties"></a>
217 <table class="summary" border="1" cellpadding="3"
218 cellspacing="0" width="100%" bgcolor="white">
219 <tr bgcolor="#70b0f0" class="table-header">
220 <td colspan="2" class="table-header">
221 <table border="0" cellpadding="0" cellspacing="0" width="100%">
223 <td align="left"><span class="table-header">Properties</span></td>
224 <td align="right" valign="top"
225 ><span class="options">[<a href="#section-Properties"
226 class="privatelink" onclick="toggle_private();"
227 >hide private</a>]</span></td>
233 <td width="15%" align="right" valign="top" class="summary">
234 <span class="summary-type"> </span>
235 </td><td class="summary">
236 <a name="options"></a><span class="summary-name">options</span><br />
237 The access control configuration as a map of options.
241 <td colspan="2" class="summary">
242 <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
243 <code>__class__</code>
248 <!-- ==================== METHOD DETAILS ==================== -->
249 <a name="section-MethodDetails"></a>
250 <table class="details" border="1" cellpadding="3"
251 cellspacing="0" width="100%" bgcolor="white">
252 <tr bgcolor="#70b0f0" class="table-header">
253 <td colspan="2" class="table-header">
254 <table border="0" cellpadding="0" cellspacing="0" width="100%">
256 <td align="left"><span class="table-header">Method Details</span></td>
257 <td align="right" valign="top"
258 ><span class="options">[<a href="#section-MethodDetails"
259 class="privatelink" onclick="toggle_private();"
260 >hide private</a>]</span></td>
266 <a name="__init__"></a>
268 <table class="details" border="1" cellpadding="3"
269 cellspacing="0" width="100%" bgcolor="white">
271 <table width="100%" cellpadding="0" cellspacing="0" border="0">
272 <tr valign="top"><td>
273 <h3 class="epydoc"><span class="sig"><span class="sig-name">__init__</span>(<span class="sig-arg">self</span>,
274 <span class="sig-arg">read_file</span>=<span class="sig-default">True</span>,
275 <span class="sig-arg">write_file</span>=<span class="sig-default">True</span>,
276 <span class="sig-arg">create_dir</span>=<span class="sig-default">True</span>,
277 <span class="sig-arg">read_network</span>=<span class="sig-default">True</span>,
278 <span class="sig-arg">write_network</span>=<span class="sig-default">True</span>)</span>
279 <br /><em class="fname">(Constructor)</em>
281 </td><td align="right" valign="top"
286 x.__init__(...) initializes x; see help(type(x)) for signature
294 <a name="__new__"></a>
296 <table class="details" border="1" cellpadding="3"
297 cellspacing="0" width="100%" bgcolor="white">
299 <table width="100%" cellpadding="0" cellspacing="0" border="0">
300 <tr valign="top"><td>
301 <h3 class="epydoc"><span class="sig"><span class="sig-name">__new__</span>(<span class="sig-arg">T</span>,
302 <span class="sig-arg">S</span>,
303 <span class="sig-arg">...</span>)</span>
305 </td><td align="right" valign="top"
312 <dt>Returns: a new object with type S, a subtype of T</dt>
319 <a name="__repr__"></a>
321 <table class="details" border="1" cellpadding="3"
322 cellspacing="0" width="100%" bgcolor="white">
324 <table width="100%" cellpadding="0" cellspacing="0" border="0">
325 <tr valign="top"><td>
326 <h3 class="epydoc"><span class="sig"><span class="sig-name">__repr__</span>(<span class="sig-arg">x</span>)</span>
327 <br /><em class="fname">(Representation operator)</em>
329 </td><td align="right" valign="top"
343 <!-- ==================== CLASS VARIABLE DETAILS ==================== -->
344 <a name="section-ClassVariableDetails"></a>
345 <table class="details" border="1" cellpadding="3"
346 cellspacing="0" width="100%" bgcolor="white">
347 <tr bgcolor="#70b0f0" class="table-header">
348 <td colspan="2" class="table-header">
349 <table border="0" cellpadding="0" cellspacing="0" width="100%">
351 <td align="left"><span class="table-header">Class Variable Details</span></td>
352 <td align="right" valign="top"
353 ><span class="options">[<a href="#section-ClassVariableDetails"
354 class="privatelink" onclick="toggle_private();"
355 >hide private</a>]</span></td>
361 <a name="DENY_ALL"></a>
363 <table class="details" border="1" cellpadding="3"
364 cellspacing="0" width="100%" bgcolor="white">
366 <h3 class="epydoc">DENY_ALL</h3>
372 <dd><table><tr><td><pre class="variable">
373 XSLTAccessControl(create_dir=False, read_file=False, read_network=Fals<span class="variable-linewrap"><img src="crarr.png" alt="\" /></span>
374 e, write_file=False, write_network=False)
375 </pre></td></tr></table>
380 <a name="DENY_WRITE"></a>
382 <table class="details" border="1" cellpadding="3"
383 cellspacing="0" width="100%" bgcolor="white">
385 <h3 class="epydoc">DENY_WRITE</h3>
391 <dd><table><tr><td><pre class="variable">
392 XSLTAccessControl(create_dir=False, read_file=True, read_network=True,<span class="variable-linewrap"><img src="crarr.png" alt="\" /></span>
393 write_file=False, write_network=False)
394 </pre></td></tr></table>
400 <!-- ==================== NAVIGATION BAR ==================== -->
401 <table class="navbar" border="0" width="100%" cellpadding="0"
402 bgcolor="#a0c0ff" cellspacing="0">
405 <th> <a
406 href="lxml-module.html">Home</a> </th>
409 <th> <a
410 href="module-tree.html">Trees</a> </th>
413 <th> <a
414 href="identifier-index.html">Indices</a> </th>
417 <th> <a
418 href="help.html">Help</a> </th>
420 <!-- Project homepage -->
421 <th class="navbar" align="right" width="100%">
422 <table border="0" cellpadding="0" cellspacing="0">
423 <tr><th class="navbar" align="center"
424 ><a class="navbar" target="_top" href="/">lxml API</a></th>
428 <table border="0" cellpadding="0" cellspacing="0" width="100%%">
430 <td align="left" class="footer">
431 Generated by Epydoc 3.0.1
432 on Wed Jan 29 12:26:21 2020
434 <td align="right" class="footer">
435 <a target="mainFrame" href="http://epydoc.sourceforge.net"
436 >http://epydoc.sourceforge.net</a>
441 <script type="text/javascript">
443 // Private objects are initially displayed (because if
444 // javascript is turned off then we want them to be
445 // visible); but by default, we want to hide them. So hide
446 // them unless we have a cookie that says to show them.