1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module gdata.tlslite.BaseDB</title>
</head><body bgcolor="#f0f0f8">
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="gdata.html"><font color="#ffffff">gdata</font></a>.<a href="gdata.tlslite.html"><font color="#ffffff">tlslite</font></a>.BaseDB</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/afshar/wrk/gdata-python-client/src/gdata/tlslite/BaseDB.py">/home/afshar/wrk/gdata-python-client/src/gdata/tlslite/BaseDB.py</a></font></td></tr></table>
<p><tt>Base class for SharedKeyDB and VerifierDB.</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="anydbm.html">anydbm</a><br>
</td><td width="25%" valign=top><a href="thread.html">thread</a><br>
</td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="gdata.tlslite.BaseDB.html#BaseDB">BaseDB</a>
</font></dt></dl>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="BaseDB">class <strong>BaseDB</strong></a></font></td></tr>
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="BaseDB-__contains__"><strong>__contains__</strong></a>(self, username)</dt><dd><tt>Check if the database contains the specified username.<br>
<br>
@type username: str<br>
@param username: The username to check for.<br>
<br>
@rtype: bool<br>
@return: True if the database contains the username, False<br>
otherwise.</tt></dd></dl>
<dl><dt><a name="BaseDB-__delitem__"><strong>__delitem__</strong></a>(self, username)</dt></dl>
<dl><dt><a name="BaseDB-__getitem__"><strong>__getitem__</strong></a>(self, username)</dt></dl>
<dl><dt><a name="BaseDB-__init__"><strong>__init__</strong></a>(self, filename, type)</dt></dl>
<dl><dt><a name="BaseDB-__setitem__"><strong>__setitem__</strong></a>(self, username, value)</dt></dl>
<dl><dt><a name="BaseDB-check"><strong>check</strong></a>(self, username, param)</dt></dl>
<dl><dt><a name="BaseDB-create"><strong>create</strong></a>(self)</dt><dd><tt>Create a new on-disk database.<br>
<br>
@raise anydbm.error: If there's a problem creating the database.</tt></dd></dl>
<dl><dt><a name="BaseDB-keys"><strong>keys</strong></a>(self)</dt><dd><tt>Return a list of usernames in the database.<br>
<br>
@rtype: list<br>
@return: The usernames in the database.</tt></dd></dl>
<dl><dt><a name="BaseDB-open"><strong>open</strong></a>(self)</dt><dd><tt>Open a pre-existing on-disk database.<br>
<br>
@raise anydbm.error: If there's a problem opening the database.<br>
@raise ValueError: If the database is not of the right type.</tt></dd></dl>
</td></tr></table></td></tr></table>
</body></html>
|