source: TI02-CSML/trunk/services/3rdParty/pywps-1.0.0/pywps/etc/settings.py @ 2194

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI02-CSML/trunk/services/3rdParty/pywps-1.0.0/pywps/etc/settings.py@2194
Revision 2194, 4.3 KB checked in by lawrence, 13 years ago (diff)

Adding various specs and 3rd party code of interest for the CSML
services development.

Line 
1"""
2This is main configuration file for pywps.
3
4The most importand parts are
5WPS[ServiceIdenteification]
6ServerSettings
7"""
8# Author:       Jachym Cepicky
9#               http://les-ejk.cz
10# Lince:
11#
12# Web Processing Service implementation (conf. file)
13# Copyright (C) 2006 Jachym Cepicky
14#
15# This program is free software; you can redistribute it and/or modify
16# it under the terms of the GNU General Public License as published by
17# the Free Software Foundation; either version 2 of the License, or
18# (at your option) any later version.
19#
20# This program is distributed in the hope that it will be useful,
21# but WITHOUT ANY WARRANTY; without even the implied warranty of
22# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23# GNU General Public License for more details.
24#
25# You should have received a copy of the GNU General Public License
26# along with this program; if not, write to the Free Software
27# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
28
29
30
31###########################################################
32#
33# In this WPS structure the main configuration is stored
34#
35###########################################################
36WPS = {
37    # version of supported WPS
38    # 'version':"0.4.0"
39    'version': "0.4.0",
40
41    #
42    # This are mandatory and optional conf. parameters
43    #
44    'ServiceIdentification': {
45
46        ####################
47        # Mandatory options
48        ####################
49        #
50        # 'Title':"This WPS Title",
51        #
52        'Title':"PyWPS 0.1",
53        #
54        # 'ServiceType":"WPS",
55        #
56        'ServiceType':"WPS",
57        #
58        # 'ServiceTypeVersion':"0.1.0",
59        #
60        'ServiceTypeVersion':"0.1.0",
61
62        ####################
63        # Optional options
64        ####################
65        #
66        #'Abstract':'Abstract to this WPS',
67        #
68        #
69        #'Fees':'$0',
70        #
71        #
72        #'AccesConstraints':'',
73        #
74    },
75   
76    #
77    # Service provider identification
78    #
79    'ServiceProvider': {
80            'ProviderName' : "Help-Service",
81            'IndividualName':"Jachym Cepicky",
82            'PositionName':"Student",
83            'Role':"author",
84            'DeliveryPoint': "Mengendamm 16d",
85            'City': "Hannover",
86            'PostalCode':"30177",
87            'Country': "Germany",
88            'ElectronicMailAddress':"cepicky@gdf-hannover.de",
89    },
90
91    #
92    # OperationsMetadata options
93    #
94    'OperationsMetadata': {
95        #
96        # ServerAddress - URL address to your pywps server
97        #'ServerAddress' : "http://localhost/cgi-bin/wps/wps.py",
98        'ServerAddress' : "http://localhost/cgi-bin/wps/wps.py",
99    },
100
101    #
102    # Server Keywords array
103    #
104    # 'Keywords': ['GRASS','GIS','WPS'],
105    'Keywords' : ['GRASS','GIS','WPS'],
106
107}
108
109###########################################################
110#
111# In this ServerSettings structure, the most importand server settings are
112# stored
113#
114###########################################################
115ServerSettings = {
116    #
117    # outputPath - directory, where your files will be stored, if
118    # storeSupported is set to "true"
119    # NOTE: You have to create this directory manualy and set rights, so
120    #       the program is able to store data in there
121    # 'outputPath':'/var/www/wpsoutputs',
122    'outputPath': '/var/www/wps/wpsoutputs/',
123   
124    #
125    # 'outputUrl' - URL of the directory, where the outputs will be stored
126    # 'outputUrl': 'http://localhost/wpsoutputs',
127    'outputUrl':  'http://localhost/wps/wpsoutputs',
128
129    #
130    # tempPath - path to directory, where temporary data will be stored.
131    # NOTE: the pywps has to have rights, to create directories and files
132    #       in this directory
133    # 'tempPath':'/tmp',
134    'tempPath': '/tmp',
135
136    #
137    # maxOperations - maximum number of operations, which is allowed to low
138    # on this server at ones
139    # default = 1
140    # 'maxOperations':1,
141    'maxOperations':1,
142   
143    #
144    # maxSize: maximum input file size in bytes
145    # NOTE: maximum file size is 5MB, no care, if this number is heigher
146    # 'maxSize':5242880, # 5 MB
147    'maxSize':5242880, # 5 MB
148
149    #
150    # maxInputParamLength: maximal length of input values
151    # NOTE: maximal length of input parameters is 256, no mather, how height
152    #       is this number
153    # 'maxInputParamLength':256,
154    'maxInputParamLength':1024,
155}
Note: See TracBrowser for help on using the repository browser.