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

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI03-DataExtractor/branches/old_stuff/abstractPWSS/doc/errorHandler.html@793
Revision 793, 4.6 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 errorHandler</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>errorHandler</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/errorHandler.py">/home/as56/abstractWebService/abstractPWSS/errorHandler.py</a></font></td></tr></table>
12    <p><tt>errorHandler.py<br>
13===============<br>
14&nbsp;<br>
15Holds&nbsp;Error&nbsp;handling&nbsp;class&nbsp;for&nbsp;the&nbsp;server.</tt></p>
16<p>
17<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
18<tr bgcolor="#aa55cc">
19<td colspan=3 valign=bottom>&nbsp;<br>
20<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
21   
22<tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
23<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="os.html">os</a><br>
24</td><td width="25%" valign=top><a href="smtplib.html">smtplib</a><br>
25</td><td width="25%" valign=top><a href="sys.html">sys</a><br>
26</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
27<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
28<tr bgcolor="#ee77aa">
29<td colspan=3 valign=bottom>&nbsp;<br>
30<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
31   
32<tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
33<td width="100%"><dl>
34<dt><font face="helvetica, arial"><a href="errorHandler.html#ErrorHandler">ErrorHandler</a>
35</font></dt></dl>
36 <p>
37<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
38<tr bgcolor="#ffc8d8">
39<td colspan=3 valign=bottom>&nbsp;<br>
40<font color="#000000" face="helvetica, arial"><a name="ErrorHandler">class <strong>ErrorHandler</strong></a></font></td></tr>
41   
42<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
43<td colspan=2><tt>Used&nbsp;to&nbsp;handle&nbsp;errors&nbsp;sensibly&nbsp;returning&nbsp;a&nbsp;useful&nbsp;message&nbsp;string&nbsp;and&nbsp;<br>
44sending&nbsp;a&nbsp;message&nbsp;to&nbsp;the&nbsp;administrator.<br>&nbsp;</tt></td></tr>
45<tr><td>&nbsp;</td>
46<td width="100%">Methods defined here:<br>
47<dl><dt><a name="ErrorHandler-__init__"><strong>__init__</strong></a>(self, msg, username<font color="#909090">=None</font>, sessionID<font color="#909090">=None</font>)</dt><dd><tt>Method&nbsp;to&nbsp;build&nbsp;the&nbsp;instance&nbsp;variables&nbsp;required&nbsp;in&nbsp;the&nbsp;class&nbsp;and<br>
48calls&nbsp;the&nbsp;appropriate&nbsp;internal&nbsp;methods.&nbsp;Used&nbsp;to&nbsp;handle&nbsp;errors&nbsp;by&nbsp;<br>
49printing&nbsp;the&nbsp;error&nbsp;on&nbsp;the&nbsp;server&nbsp;and&nbsp;using&nbsp;the&nbsp;MailAdministrator&nbsp;class.</tt></dd></dl>
50
51<dl><dt><a name="ErrorHandler-displayError"><strong>displayError</strong></a>(self)</dt><dd><tt>Displays&nbsp;the&nbsp;error&nbsp;on&nbsp;the&nbsp;server&nbsp;terminal.</tt></dd></dl>
52
53</td></tr></table></td></tr></table><p>
54<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
55<tr bgcolor="#55aa55">
56<td colspan=3 valign=bottom>&nbsp;<br>
57<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
58   
59<tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
60<td width="100%"><strong>ADMIN_MAIL_ADDRESS</strong> = 'as56@localhost'<br>
61<strong>ADMIN_NOTIFICATION</strong> = 1<br>
62<strong>BASEDIR</strong> = '/home/as56/abstractWebService/abstractPWSS'<br>
63<strong>CREDIT_LIMIT</strong> = 2<br>
64<strong>LOCAL_MAIL_HOST</strong> = 'localhost'<br>
65<strong>LOCAL_RULES</strong> = 0<br>
66<strong>OUTPUT_DIR</strong> = '/srv/www/htdocs/output'<br>
67<strong>OUTPUT_DIR_PERMISSION</strong> = 493<br>
68<strong>OUTPUT_DIR_URL</strong> = 'http://localhost/output'<br>
69<strong>OUTPUT_FILE_GROUP</strong> = 'users'<br>
70<strong>OUTPUT_FILE_PERMISSION</strong> = 420<br>
71<strong>OUTPUT_FILE_USER</strong> = 'as56'<br>
72<strong>PACKAGE_NAME</strong> = 'Abstract Python Web Service Server'<br>
73<strong>RESTRICTED_DATA</strong> = 1<br>
74<strong>SESSION_OBJECT_DIR</strong> = '/home/as56/abstractWebService/abstractPWSS/sessionObjects'<br>
75<strong>SOAP_SERVER_PORT</strong> = 8443<br>
76<strong>TOKEN_VALID_LIFETIME</strong> = 28800<br>
77<strong>UNRESTRICTED_CREDIT</strong> = 1</td></tr></table>
78</body></html>
Note: See TracBrowser for help on using the repository browser.