twisted.spread.newjelly.SecurityOptions.html [plain text]
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>twisted.spread.newjelly.SecurityOptions</title>
<link rel="stylesheet" href="epydoc.css" type="text/css"></link>
</head>
<body bgcolor="white" text="black" link="blue" vlink="#204080"
alink="#204080">
<!-- =========== START OF NAVBAR =========== -->
<table class="navbar" border="0" width="100%" cellpadding="0" bgcolor="#a0c0ff" cellspacing="0">
<tr valign="center">
<th class="navbar"> <a class="navbar" href="twisted.html">Home</a> </th>
<th class="navbar"> <a class="navbar" href="trees.html">Trees</a> </th>
<th class="navbar"> <a class="navbar" href="indices.html">Index</a> </th>
<th class="navbar"> <a class="navbar" href="help.html">Help</a> </th>
<th class="navbar" align="right" width="100%">
<table border="0" cellpadding="0" cellspacing="0">
<tr><th class="navbar" align="center">
<p class="nomargin">
<a class="navbar" target="_top" href="http://twistedmatrix.com/">Twisted 1.3.0rc1</a>
</p></th></tr></table>
</th>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
<tr valign="top">
<td width="100%">
<font size="-1"><b class="breadcrumbs">
<a href="twisted.html">Package twisted</a> ::
<a href="twisted.spread.html">Package spread</a> ::
<a href="twisted.spread.newjelly.html">Module newjelly</a> ::
Class SecurityOptions
</b></font></br>
</td>
<td><table cellpadding="0" cellspacing="0">
<tr><td align="right"><font size="-2">[<a href="frames.html"target="_top">frames</a> | <a href="twisted.spread.newjelly.SecurityOptions.html" target="_top">no frames</a>]</font></td></tr>
</table></td>
</tr></table>
<!-- =========== START OF CLASS DESCRIPTION =========== -->
<h2 class="class">Class SecurityOptions</h2>
<hr/>
This will by default disallow everything, except for 'none'.
<hr/>
<!-- =========== START OF METHOD SUMMARY =========== -->
<table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="summary">
<th colspan="2">Method Summary</th></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><span class="summary-sig"><a href="twisted.spread.newjelly.SecurityOptions.html#__init__" class="summary-sig-name"><code>__init__</code></a>(<span class=summary-sig-arg>self</span>)</span></code>
<br />
SecurityOptions() Initialize.</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><span class="summary-sig"><a href="twisted.spread.newjelly.SecurityOptions.html#allowBasicTypes" class="summary-sig-name"><code>allowBasicTypes</code></a>(<span class=summary-sig-arg>self</span>)</span></code>
<br />
SecurityOptions.allowBasicTypes() Allow all `basic' types.</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><span class="summary-sig"><a href="twisted.spread.newjelly.SecurityOptions.html#allowInstancesOf" class="summary-sig-name"><code>allowInstancesOf</code></a>(<span class=summary-sig-arg>self</span>,
<span class="summary-sig-vararg">*classes</span>)</span></code>
<br />
SecurityOptions.allowInstances(klass, klass, ...): allow instances of
the specified classes</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><span class="summary-sig"><a href="twisted.spread.newjelly.SecurityOptions.html#allowModules" class="summary-sig-name"><code>allowModules</code></a>(<span class=summary-sig-arg>self</span>,
<span class="summary-sig-vararg">*modules</span>)</span></code>
<br />
SecurityOptions.allowModules(module, module, ...): allow modules by
name This will also allow the 'module' type.</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><span class="summary-sig"><a href="twisted.spread.newjelly.SecurityOptions.html#allowTypes" class="summary-sig-name"><code>allowTypes</code></a>(<span class=summary-sig-arg>self</span>,
<span class="summary-sig-vararg">*types</span>)</span></code>
<br />
SecurityOptions.allowTypes(typeString): Allow a particular type, by
its name.</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><span class="summary-sig"><a href="twisted.spread.newjelly.SecurityOptions.html#isClassAllowed" class="summary-sig-name"><code>isClassAllowed</code></a>(<span class=summary-sig-arg>self</span>,
<span class=summary-sig-arg>klass</span>)</span></code>
<br />
SecurityOptions.isClassAllowed(class) -> boolean Assumes the module
has already been allowed.</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><span class="summary-sig"><a href="twisted.spread.newjelly.SecurityOptions.html#isModuleAllowed" class="summary-sig-name"><code>isModuleAllowed</code></a>(<span class=summary-sig-arg>self</span>,
<span class=summary-sig-arg>moduleName</span>)</span></code>
<br />
SecurityOptions.isModuleAllowed(moduleName) -> boolean returns 1 if
a module by that name is allowed, 0 otherwise</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><span class="summary-sig"><a href="twisted.spread.newjelly.SecurityOptions.html#isTypeAllowed" class="summary-sig-name"><code>isTypeAllowed</code></a>(<span class=summary-sig-arg>self</span>,
<span class=summary-sig-arg>typeName</span>)</span></code>
<br />
SecurityOptions.isTypeAllowed(typeName) -> boolean Returns 1 if the
given type is allowed, 0 otherwise.</td></tr>
</table><br />
<!-- =========== START OF CLASS VARIABLE SUMMARY =========== -->
<table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="summary">
<th colspan="2">Class Variable Summary</th></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>list</code></font></td>
<td><b><a href="twisted.spread.newjelly.SecurityOptions.html#basicTypes"><code>basicTypes</code></a></b> = <span title="['dictionary', 'list', 'tuple', 'reference', 'dereference', 'unpersistable', 'persistent', 'long_int', 'long', 'dict']"><code>['dictionary', 'list', 'tuple', 'reference'<span class="variable-ellipsis">...</span></code>
</span></td></tr>
</table><br />
<!-- =========== START OF METHOD DETAILS =========== -->
<table class="details" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="details">
<th colspan="2">Method Details</th></tr>
</table>
<a name="__init__"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
<h3><span class="sig"><span class="sig-name">__init__</span>(<span class=sig-arg>self</span>)</span>
<br /><i>(Constructor)</i>
</h3>
SecurityOptions() Initialize.
<dl><dt></dt><dd>
</dd></dl>
</td></tr></table>
<a name="allowBasicTypes"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
<h3><span class="sig"><span class="sig-name">allowBasicTypes</span>(<span class=sig-arg>self</span>)</span>
</h3>
SecurityOptions.allowBasicTypes() Allow all `basic' types.
(Dictionary and list. Int, string, and float are implicitly
allowed.)
<dl><dt></dt><dd>
</dd></dl>
</td></tr></table>
<a name="allowInstancesOf"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
<h3><span class="sig"><span class="sig-name">allowInstancesOf</span>(<span class=sig-arg>self</span>,
<span class="sig-vararg">*classes</span>)</span>
</h3>
<p>SecurityOptions.allowInstances(klass, klass, ...): allow instances
of the specified classes</p>
This will also allow the 'instance', 'class' (renamed 'classobj' in
Python 2.3), and 'module' types, as well as basic types.
<dl><dt></dt><dd>
</dd></dl>
</td></tr></table>
<a name="allowModules"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
<h3><span class="sig"><span class="sig-name">allowModules</span>(<span class=sig-arg>self</span>,
<span class="sig-vararg">*modules</span>)</span>
</h3>
SecurityOptions.allowModules(module, module, ...): allow modules by
name This will also allow the 'module' type.
<dl><dt></dt><dd>
</dd></dl>
</td></tr></table>
<a name="allowTypes"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
<h3><span class="sig"><span class="sig-name">allowTypes</span>(<span class=sig-arg>self</span>,
<span class="sig-vararg">*types</span>)</span>
</h3>
SecurityOptions.allowTypes(typeString): Allow a particular type, by
its name.
<dl><dt></dt><dd>
</dd></dl>
</td></tr></table>
<a name="isClassAllowed"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
<h3><span class="sig"><span class="sig-name">isClassAllowed</span>(<span class=sig-arg>self</span>,
<span class=sig-arg>klass</span>)</span>
</h3>
SecurityOptions.isClassAllowed(class) -> boolean Assumes the
module has already been allowed. Returns 1 if the given class is
allowed, 0 otherwise.
<dl><dt></dt><dd>
</dd></dl>
</td></tr></table>
<a name="isModuleAllowed"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
<h3><span class="sig"><span class="sig-name">isModuleAllowed</span>(<span class=sig-arg>self</span>,
<span class=sig-arg>moduleName</span>)</span>
</h3>
SecurityOptions.isModuleAllowed(moduleName) -> boolean returns 1
if a module by that name is allowed, 0 otherwise
<dl><dt></dt><dd>
</dd></dl>
</td></tr></table>
<a name="isTypeAllowed"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
<h3><span class="sig"><span class="sig-name">isTypeAllowed</span>(<span class=sig-arg>self</span>,
<span class=sig-arg>typeName</span>)</span>
</h3>
SecurityOptions.isTypeAllowed(typeName) -> boolean Returns 1 if
the given type is allowed, 0 otherwise.
<dl><dt></dt><dd>
</dd></dl>
</td></tr></table>
<br />
<!-- =========== START OF CLASS VARIABLE DETAILS =========== -->
<table class="details" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="details">
<th colspan="2">Class Variable Details</th></tr>
</table>
<table width="100%" class="var-details" bgcolor="#e0e0e0"><tr><td>
<a name="basicTypes"></a>
<h3>basicTypes</h3>
<dl>
<dt></dt>
<dd>
<dl>
<dt><b>Type:</b></dt>
<dd>
<code>list</code>
</dd>
<span title="['dictionary', 'list', 'tuple', 'reference', 'dereference', 'unpersistable', 'persistent', 'long_int', 'long', 'dict']"> <dt><b>Value:</b></dt>
<dd><table><tr><td>
<pre class="variable">
['dictionary',
'list',
'tuple',
'reference',
'dereference',
'unpersistable',
'persistent',
'long_int',
<span class="variable-ellipsis">...</span> </pre>
</td></tr></table></dd>
</span> </dl>
</dd>
</dl></td></tr></table>
<br />
<!-- =========== START OF NAVBAR =========== -->
<table class="navbar" border="0" width="100%" cellpadding="0" bgcolor="#a0c0ff" cellspacing="0">
<tr valign="center">
<th class="navbar"> <a class="navbar" href="twisted.html">Home</a> </th>
<th class="navbar"> <a class="navbar" href="trees.html">Trees</a> </th>
<th class="navbar"> <a class="navbar" href="indices.html">Index</a> </th>
<th class="navbar"> <a class="navbar" href="help.html">Help</a> </th>
<th class="navbar" align="right" width="100%">
<table border="0" cellpadding="0" cellspacing="0">
<tr><th class="navbar" align="center">
<p class="nomargin">
<a class="navbar" target="_top" href="http://twistedmatrix.com/">Twisted 1.3.0rc1</a>
</p></th></tr></table>
</th>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left"><font size="-2">Generated by Epydoc 2.0 on Sat May 15 20:08:34 2004</font></td>
<td align="right"><a href="http://epydoc.sourceforge.net"
><font size="-2">http://epydoc.sf.net</font></a></td>
</tr>
</table>
</body>
</html>