Changeset 6877
- Timestamp:
- 22/05/10 23:07:20 (11 years ago)
- Location:
- cows_wps/trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
cows_wps/trunk/cows_wps/routing.py
r5619 r6877 15 15 # CUSTOM ROUTES HERE 16 16 map.connect('status/:requestId', controller='status') 17 map.connect('dl/: jobId/:fileName', controller='download')17 map.connect('dl/:authorisedRoles/:jobId/:fileName', controller='download') 18 18 map.connect('user/:userId', controller='user', fullDetails=False) 19 19 map.connect('user/:userId/full', controller='user', fullDetails=True) -
cows_wps/trunk/cows_wps/utils/parse_wps_config.py
r5615 r6877 20 20 if pylons.config is None: 21 21 raise RuntimeError("Trying to access WPS configuration options before the pylons configuration is initialised") 22 22 23 23 try: 24 24 val = pylons.config['app_conf']['wps.%s' % key] -
cows_wps/trunk/cows_wps/websetup.py
r5615 r6877 21 21 """Place any commands to setup foo here""" 22 22 conf = appconfig('config:' + filename) 23 load_environment(conf.global_conf, conf.local_conf )23 load_environment(conf.global_conf, conf.local_conf, set_env = False) 24 24 25 25 from cows_wps.model.session import engine -
cows_wps/trunk/cows_wps/wsgiapp.py
r5615 r6877 20 20 from cows_wps.utils.setenv import setenv_wps 21 21 22 def load_environment(global_conf, app_conf ):23 """ Configure the Pylons environment via the ``pylons.config``24 object22 def load_environment(global_conf, app_conf, set_env = True): 23 """ 24 Configure the Pylons environment via the ``pylons.config`` object. 25 25 """ 26 26 # Pylons paths … … 44 44 # CONFIGURATION OPTIONS HERE (note: all config options will override 45 45 # any Pylons config options) 46 setenv_wps() 46 if set_env == True: 47 setenv_wps() 47 48 48 49 -
cows_wps/trunk/process_configs/GetWeatherStations.ini
r6116 r6877 1 1 [wps_interface] 2 2 process_callable = process_modules.get_weather_stations#GetWeatherStations 3 process_type = sync3 process_type = async_s 4 4 dry_run_enabled = False 5 5 internal = False -
cows_wps/trunk/process_modules/get_weather_stations.py
r6873 r6877 80 80 def dryRun(self, context): 81 81 82 # Not implemented for sync jobs 83 pass 82 self.fileSet = context.outputs['FileSet'] = FileSet() 83 self.fileSet.contents.append(FileSet(FLAG.DATA, "testfile.txt", 30000, "Soem file")) 84 85 ddp_process_support.finishDryRun(context, [("meta", "data")], self.fileSet, 86 60, acceptedMessage='Dry run complete') 87
Note: See TracChangeset
for help on using the changeset viewer.