root/software/session2/trunk/epydoc-html/session2.store.PostgresSessionStore-module.html

Revision 9, 5.6 kB (checked in by t, 12 years ago)

transferred from

svn://cafepy.com:13690/

Line 
1 <?xml version="1.0" encoding="iso-8859-1"?>
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">
5 <head>
6   <title>session2.store.PostgresSessionStore</title>
7   <link rel="stylesheet" href="epydoc.css" type="text/css"></link>
8 </head>
9 <body bgcolor="white" text="black" link="blue" vlink="#204080"
10       alink="#204080">
11
12 <!-- =========== START OF NAVBAR =========== -->
13 <table class="navbar" border="0" width="100%" cellpadding="0" bgcolor="#a0c0ff" cellspacing="0">
14   <tr valign="center">
15     <th class="navbar">&nbsp;&nbsp;&nbsp;<a class="navbar" href="session2-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>
16     <th class="navbar">&nbsp;&nbsp;&nbsp;<a class="navbar" href="trees.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
17     <th class="navbar">&nbsp;&nbsp;&nbsp;<a class="navbar" href="indices.html">Index</a>&nbsp;&nbsp;&nbsp;</th>
18     <th class="navbar">&nbsp;&nbsp;&nbsp;<a class="navbar" href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
19     <th class="navbar" align="right" width="100%">
20       <table border="0" cellpadding="0" cellspacing="0">
21       <tr><th class="navbar" align="center">
22         <p class="nomargin">
23           session2
24       </p></th></tr></table>
25     </th>
26   </tr>
27 </table>
28 <table width="100%" cellpadding="0" cellspacing="0">
29   <tr valign="top">
30     <td width="100%">
31       <font size="-1"><b class="breadcrumbs">
32         <a href="session2-module.html">Package&nbsp;session2</a> ::
33         <a href="session2.store-module.html">Package&nbsp;store</a> ::
34         Module&nbsp;PostgresSessionStore
35       </b></font></br>
36     </td>
37     <td><table cellpadding="0" cellspacing="0">
38       <tr><td align="right"><font size="-2">[<a href="frames.html"target="_top">frames</a>&nbsp;|&nbsp;<a href="session2.store.PostgresSessionStore-module.html" target="_top">no&nbsp;frames</a>]</font></td></tr>
39     </table></td>
40 </tr></table>
41
42 <!-- =========== START OF MODULE DESCRIPTION =========== -->
43 <h2 class="module">Module session2.store.PostgresSessionStore</h2>
44
45 <p>Store sessions in a PostgreSQL table.</p>
46 <p>Two extra methods are provided, .create_table and .delete_old_sessions.
47 These are not called by session2 but may be useful in your programs.
48 They use a third column of type TIMESTAMP, which is updated every time
49 the row changes.</p>
50 <p>This module assumes the connection is in transaction-mode (the default
51 for psycopg).  Use a separate database connection for sessions, or
52 else your transactions will become confused.</p>
53 <hr/>
54
55 <!-- =========== START OF CLASSES =========== -->
56 <table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
57 <tr bgcolor="#70b0f0" class="summary">
58   <th colspan="2">Classes</th></tr>
59 <tr><td width="15%">
60   <b><a href="session2.store.PostgresSessionStore.PostgresSessionStore-class.html"><code>PostgresSessionStore</code></a></b></td>
61   <td>Store pickled sessions in an SQL database.</td></tr>
62 </table><br />
63
64
65 <!-- =========== START OF VARIABLE SUMMARY =========== -->
66 <table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
67 <tr bgcolor="#70b0f0" class="summary">
68   <th colspan="2">Variable Summary</th></tr>
69 <tr><td align="right" valign="top" width="15%"><font size="-1"><code>str</code></font></td>
70 <td><b><a href="session2.store.PostgresSessionStore-module.html#DEFAULT_TABLE"><code>DEFAULT_TABLE</code></a></b> = <span title="'sessions'"><code><span class="variable-quote">'</span>sessions<span class="variable-quote">'</span>                               </code>
71 </span></td></tr>
72 </table><br />
73
74
75 <!-- =========== START OF VARIABLE DETAILS =========== -->
76 <table class="details" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
77 <tr bgcolor="#70b0f0" class="details">
78   <th colspan="2">Variable Details</th></tr>
79 </table>
80 <table width="100%" class="var-details" bgcolor="#e0e0e0"><tr><td>
81 <a name="DEFAULT_TABLE"></a>
82 <h3>DEFAULT_TABLE</h3>
83 <dl>
84   <dt></dt>
85   <dd>
86     <dl>
87       <dt><b>Type:</b></dt>
88       <dd>
89           <code>str</code>
90
91       </dd>
92 <span title="'sessions'">      <dt><b>Value:</b></dt>
93       <dd><table><tr><td>
94 <pre class="variable">
95 <span class="variable-quote">'</span>sessions<span class="variable-quote">'</span>                                                             </pre>
96         </td></tr></table></dd>
97 </span>    </dl>
98   </dd>
99 </dl></td></tr></table>
100 <br />
101
102
103 <!-- =========== START OF NAVBAR =========== -->
104 <table class="navbar" border="0" width="100%" cellpadding="0" bgcolor="#a0c0ff" cellspacing="0">
105   <tr valign="center">
106     <th class="navbar">&nbsp;&nbsp;&nbsp;<a class="navbar" href="session2-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>
107     <th class="navbar">&nbsp;&nbsp;&nbsp;<a class="navbar" href="trees.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
108     <th class="navbar">&nbsp;&nbsp;&nbsp;<a class="navbar" href="indices.html">Index</a>&nbsp;&nbsp;&nbsp;</th>
109     <th class="navbar">&nbsp;&nbsp;&nbsp;<a class="navbar" href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
110     <th class="navbar" align="right" width="100%">
111       <table border="0" cellpadding="0" cellspacing="0">
112       <tr><th class="navbar" align="center">
113         <p class="nomargin">
114           session2
115       </p></th></tr></table>
116     </th>
117   </tr>
118 </table>
119
120 <table border="0" cellpadding="0" cellspacing="0" width="100%">
121   <tr>
122     <td align="left"><font size="-2">Generated by Epydoc 2.1 on Sat Feb  4 16:40:10 2006</font></td>
123     <td align="right"><a href="http://epydoc.sourceforge.net"
124                       ><font size="-2">http://epydoc.sf.net</font></a></td>
125   </tr>
126 </table>
127 </body>
128 </html>
Note: See TracBrowser for help on using the browser.