source: TI03-DataExtractor/branches/old_stuff/dx-webservice/doc/requestDict.html @ 793

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI03-DataExtractor/branches/old_stuff/dx-webservice/doc/requestDict.html@793
Revision 793, 8.3 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 requestDict</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>requestDict</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:/usr/local/dx-0.1.1/requestDict.py">/usr/local/dx-0.1.1/requestDict.py</a></font></td></tr></table>
12    <p><tt>requestDict.py<br>
13==============<br>
14&nbsp;<br>
15Holds&nbsp;a&nbsp;wrapper&nbsp;class&nbsp;to&nbsp;improve&nbsp;access&nbsp;to&nbsp;request&nbsp;dictionary&nbsp;objects.</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="shelve.html">shelve</a><br>
25</td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
26<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
27<tr bgcolor="#ee77aa">
28<td colspan=3 valign=bottom>&nbsp;<br>
29<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
30   
31<tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
32<td width="100%"><dl>
33<dt><font face="helvetica, arial"><a href="requestDict.html#RequestDict">RequestDict</a>
34</font></dt></dl>
35 <p>
36<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
37<tr bgcolor="#ffc8d8">
38<td colspan=3 valign=bottom>&nbsp;<br>
39<font color="#000000" face="helvetica, arial"><a name="RequestDict">class <strong>RequestDict</strong></a></font></td></tr>
40   
41<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
42<td colspan=2><tt>Class&nbsp;wrapper&nbsp;around&nbsp;request&nbsp;object&nbsp;to&nbsp;group&nbsp;access&nbsp;to&nbsp;certain&nbsp;variables<br>
43in&nbsp;the&nbsp;dictionary.<br>&nbsp;</tt></td></tr>
44<tr><td>&nbsp;</td>
45<td width="100%">Methods defined here:<br>
46<dl><dt><a name="RequestDict-__getitem__"><strong>__getitem__</strong></a>(self, key)</dt><dd><tt>Method&nbsp;-&nbsp;wrap&nbsp;get&nbsp;item&nbsp;method&nbsp;on&nbsp;the&nbsp;internal&nbsp;dictionary.</tt></dd></dl>
47
48<dl><dt><a name="RequestDict-__init__"><strong>__init__</strong></a>(self, requestDict)</dt><dd><tt>Method&nbsp;to&nbsp;create&nbsp;instance&nbsp;pointer&nbsp;to&nbsp;requestDict.</tt></dd></dl>
49
50<dl><dt><a name="RequestDict-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Method&nbsp;-&nbsp;wrap&nbsp;print&nbsp;method&nbsp;for&nbsp;the&nbsp;internaldictionary.</tt></dd></dl>
51
52<dl><dt><a name="RequestDict-getHorizontalBounds"><strong>getHorizontalBounds</strong></a>(self)</dt><dd><tt>getHorizontalBounds&nbsp;method&nbsp;-&nbsp;returns&nbsp;the&nbsp;tuple&nbsp;of&nbsp;horizontal&nbsp;bounds<br>
53or&nbsp;None&nbsp;if&nbsp;they&nbsp;don't&nbsp;exist.</tt></dd></dl>
54
55<dl><dt><a name="RequestDict-getNumDatasets"><strong>getNumDatasets</strong></a>(self)</dt><dd><tt>Method&nbsp;-&nbsp;returns&nbsp;the&nbsp;current&nbsp;number&nbsp;of&nbsp;datasets&nbsp;selected.</tt></dd></dl>
56
57<dl><dt><a name="RequestDict-getTemporalDimension"><strong>getTemporalDimension</strong></a>(self, dset_num)</dt><dd><tt>Method&nbsp;to&nbsp;return&nbsp;the&nbsp;start&nbsp;time,&nbsp;end&nbsp;time&nbsp;and&nbsp;time&nbsp;interval&nbsp;(value,&nbsp;units).</tt></dd></dl>
58
59<dl><dt><a name="RequestDict-getVariableID"><strong>getVariableID</strong></a>(self, dset_num)</dt><dd><tt>getVariableID&nbsp;method&nbsp;-&nbsp;chops&nbsp;up&nbsp;the&nbsp;variable&nbsp;name&nbsp;we&nbsp;have&nbsp;to&nbsp;create<br>
60the&nbsp;variable&nbsp;ID&nbsp;to&nbsp;call&nbsp;in&nbsp;the&nbsp;file.</tt></dd></dl>
61
62<dl><dt><a name="RequestDict-getVerticalDimension"><strong>getVerticalDimension</strong></a>(self, dset_num)</dt><dd><tt>getVerticalDimension&nbsp;method&nbsp;-&nbsp;returns&nbsp;the&nbsp;tuple&nbsp;of&nbsp;(level_list,&nbsp;level_units).</tt></dd></dl>
63
64<dl><dt><a name="RequestDict-has_key"><strong>has_key</strong></a>(self, key)</dt><dd><tt>Method&nbsp;-&nbsp;wrap&nbsp;has_key&nbsp;method&nbsp;on&nbsp;the&nbsp;internal&nbsp;dictionary.</tt></dd></dl>
65
66<dl><dt><a name="RequestDict-keys"><strong>keys</strong></a>(self)</dt><dd><tt>Method&nbsp;-&nbsp;wrapper&nbsp;for&nbsp;the&nbsp;internal&nbsp;dictionary.</tt></dd></dl>
67
68</td></tr></table></td></tr></table><p>
69<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
70<tr bgcolor="#55aa55">
71<td colspan=3 valign=bottom>&nbsp;<br>
72<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
73   
74<tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
75<td width="100%"><strong>ADMIN_MAIL_ADDRESS</strong> = 'badc@rl.ac.uk'<br>
76<strong>ADMIN_NOTIFICATION</strong> = 0<br>
77<strong>BASEDIR</strong> = '/usr/local/dx_wv'<br>
78<strong>CDAT_BIN_PATH</strong> = '/usr/local/cdat/bin'<br>
79<strong>CF_METADATA_GLOBAL_ATTRIBUTES</strong> = {'comments': 'Created by test data extractor.'}<br>
80<strong>CGI_NAME</strong> = 'http://localhost/cgi-bin/dxui-0.1.1.py'<br>
81<strong>DATASETS</strong> = {'Test Data Group 1': (('Test Dataset 1', '/usr/local/dx_wv/testdata/testdata1.xml', 'dataset1-unused-code'),), 'Test Data Group 2': (('Test Dataset 2', '/usr/local/dx_wv/testdata/testdata2.xml', 'dataset2-unused-code'),), 'Test Data Group 3': (('Test Dataset 3', '/usr/local/dx_wv/testdata/testdata3.xml', 'dataset3-unused-code'),)}<br>
82<strong>DATASET_GROUPS</strong> = {'Test Data Group 1': None, 'Test Data Group 2': None, 'Test Data Group 3': None}<br>
83<strong>DEBUG</strong> = 1<br>
84<strong>DOMAIN_PARAMS</strong> = ('start_time', 'end_time', 'time_interval', 'horiz_domain', 'resolution', 'vertical_units', 'vertical_domain', 'output_type')<br>
85<strong>EXTRAS_DIR</strong> = '/dx_extra'<br>
86<strong>HORIZ_KEYS</strong> = ('northernExtent', 'easternExtent', 'southernExtent', 'westernExtent')<br>
87<strong>HTML_DIR</strong> = '/usr/local/dx_wv/html'<br>
88<strong>HTTP_HEADER</strong> = 'Content-Type: text/html<font color="#c040c0">\n\n</font>'<br>
89<strong>HTTP_OUTPUT_DIR</strong> = 'http://localhost/output'<br>
90<strong>LEFT_LOGO</strong> = 'dx_logo.jpg'<br>
91<strong>LOCAL_CGI_NAME</strong> = '/srv/www/cgi-bin/dxui-0.1.1.py'<br>
92<strong>LOCAL_MAIL_HOST</strong> = 'outbox.rl.ac.uk'<br>
93<strong>LOCAL_PYTHONPATH</strong> = ['/usr/local/badcdat/lib', '/usr/local/badcdat/lib/python', '/home/tornado/internal/badc/software/pythonlib/badc', '/usr/local/cdat/lib/python2.3', '/usr/local/cdat/lib/python2.3/site-packages', '/usr/local/cdat/lib/python2.3/site-packages/Numeric']<br>
94<strong>LOCAL_RULES</strong> = 0<br>
95<strong>LOGO_DIR</strong> = '/dx_extra/logos'<br>
96<strong>MAP_APPLET</strong> = '/dx_extra/LiveMap_30/extractorMap.html'<br>
97<strong>MESSAGE_TO_USERS</strong> = 'This is a test version of the Data Extractor so ...error occurs so that we can improve this service.'<br>
98<strong>OUTPUT_DIR</strong> = '/srv/www/htdocs/output'<br>
99<strong>OUTPUT_DIR_PERMISSION</strong> = 488<br>
100<strong>OUTPUT_FILE_GROUP</strong> = 'users'<br>
101<strong>OUTPUT_FILE_PERMISSION</strong> = 416<br>
102<strong>OUTPUT_FILE_USER</strong> = 'wwwrun'<br>
103<strong>OUTPUT_FORMATS</strong> = ['NetCDF']<br>
104<strong>PACKAGE_NAME</strong> = 'Data Extractor'<br>
105<strong>REGISTRATION_PAGE</strong> = 'http://badc.nerc.ac.uk/data/list_all_datasets.html?source=home'<br>
106<strong>REQUEST_DIR</strong> = '/usr/local/dx_wv/requests'<br>
107<strong>REQUEST_SIZE_LIMIT</strong> = 100<br>
108<strong>RESTRICTED_DATA</strong> = 0<br>
109<strong>RIGHT_LOGO</strong> = 'dx_logo.jpg'<br>
110<strong>STAGES</strong> = ['DatasetGroupPage', 'DatasetPage', 'VariablesPage', 'DomainPage', 'ResultsPage']<br>
111<strong>TIME_KEYS</strong> = ('year', 'month', 'day', 'hour', 'min', 'sec')<br>
112<strong>TIMING_SCALE_FACTOR</strong> = 0.001<br>
113<strong>USER_HOMEDIR</strong> = '/var/lib/wwwrun'<br>
114<strong>VISUALISOR_NAME</strong> = '/cgi-bin/splatui-0.1.1.py'</td></tr></table>
115</body></html>
Note: See TracBrowser for help on using the repository browser.