source: TI03-DataExtractor/branches/old_stuff/abstractPWSS/doc/creditManager.html @ 793

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI03-DataExtractor/branches/old_stuff/abstractPWSS/doc/creditManager.html@793
Revision 793, 3.8 KB checked in by astephen, 13 years ago (diff)

Put all the old code in the old_stuff branch.

Line 
1
2<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
3<html><head><title>Python: module creditManager</title>
4</head><body bgcolor="#f0f0f8">
5
6<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
7<tr bgcolor="#7799ee">
8<td valign=bottom>&nbsp;<br>
9<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>creditManager</strong></big></big></font></td
10><td align=right valign=bottom
11><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/as56/abstractWebService/abstractPWSS/creditManager.py">/home/as56/abstractWebService/abstractPWSS/creditManager.py</a></font></td></tr></table>
12    <p><tt>creditManager.py<br>
13==================<br>
14&nbsp;<br>
15Credit&nbsp;module&nbsp;for&nbsp;the&nbsp;CGI&nbsp;client.<br>
16&nbsp;<br>
17Note&nbsp;that&nbsp;there&nbsp;is&nbsp;no&nbsp;standard&nbsp;credit&nbsp;implementation.<br>
18You&nbsp;must&nbsp;implement&nbsp;your&nbsp;own&nbsp;but&nbsp;the&nbsp;<a href="#CreditManager">CreditManager</a>&nbsp;class&nbsp;provides&nbsp;a&nbsp;hook<br>
19to&nbsp;do&nbsp;this&nbsp;with.</tt></p>
20<p>
21<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
22<tr bgcolor="#aa55cc">
23<td colspan=3 valign=bottom>&nbsp;<br>
24<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
25   
26<tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
27<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="os.html">os</a><br>
28</td><td width="25%" valign=top><a href="sys.html">sys</a><br>
29</td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
30<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
31<tr bgcolor="#ee77aa">
32<td colspan=3 valign=bottom>&nbsp;<br>
33<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
34   
35<tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
36<td width="100%"><dl>
37<dt><font face="helvetica, arial"><a href="creditManager.html#CreditManager">CreditManager</a>
38</font></dt></dl>
39 <p>
40<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
41<tr bgcolor="#ffc8d8">
42<td colspan=3 valign=bottom>&nbsp;<br>
43<font color="#000000" face="helvetica, arial"><a name="CreditManager">class <strong>CreditManager</strong></a></font></td></tr>
44   
45<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
46<td colspan=2><tt>Credit&nbsp;manager&nbsp;class&nbsp;-&nbsp;requires&nbsp;your&nbsp;code&nbsp;for&nbsp;implementation.<br>
47The&nbsp;basic&nbsp;version&nbsp;only&nbsp;gives&nbsp;an&nbsp;example&nbsp;of&nbsp;the&nbsp;types&nbsp;of&nbsp;<br>
48calls&nbsp;that&nbsp;might&nbsp;be&nbsp;used.<br>&nbsp;</tt></td></tr>
49<tr><td>&nbsp;</td>
50<td width="100%">Methods defined here:<br>
51<dl><dt><a name="CreditManager-__init__"><strong>__init__</strong></a>(self, username, sessionObj)</dt><dd><tt>Initialises&nbsp;the&nbsp;instance&nbsp;defining&nbsp;instance&nbsp;variables</tt></dd></dl>
52
53<dl><dt><a name="CreditManager-creditCheck"><strong>creditCheck</strong></a>(self)</dt><dd><tt>Returns&nbsp;either&nbsp;a&nbsp;string&nbsp;saying&nbsp;that&nbsp;the&nbsp;user&nbsp;has&nbsp;not&nbsp;got<br>
54enough&nbsp;credit&nbsp;to&nbsp;do&nbsp;the&nbsp;task&nbsp;or&nbsp;a&nbsp;1&nbsp;for&nbsp;success.</tt></dd></dl>
55
56</td></tr></table></td></tr></table><p>
57<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
58<tr bgcolor="#55aa55">
59<td colspan=3 valign=bottom>&nbsp;<br>
60<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
61   
62<tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
63<td width="100%"><strong>UNRESTRICTED_CREDIT</strong> = 1</td></tr></table>
64</body></html>
Note: See TracBrowser for help on using the repository browser.