Changeset 6877 for cows_wps


Ignore:
Timestamp:
22/05/10 23:07:20 (9 years ago)
Author:
astephen
Message:

added more work on getting async jobs running

Location:
cows_wps/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • cows_wps/trunk/cows_wps/routing.py

    r5619 r6877  
    1515    # CUSTOM ROUTES HERE 
    1616    map.connect('status/:requestId', controller='status') 
    17     map.connect('dl/:jobId/:fileName', controller='download') 
     17    map.connect('dl/:authorisedRoles/:jobId/:fileName', controller='download') 
    1818    map.connect('user/:userId', controller='user', fullDetails=False) 
    1919    map.connect('user/:userId/full', controller='user', fullDetails=True) 
  • cows_wps/trunk/cows_wps/utils/parse_wps_config.py

    r5615 r6877  
    2020        if pylons.config is None: 
    2121            raise RuntimeError("Trying to access WPS configuration options before the pylons configuration is initialised") 
    22          
     22       
    2323        try: 
    2424            val = pylons.config['app_conf']['wps.%s' % key] 
  • cows_wps/trunk/cows_wps/websetup.py

    r5615 r6877  
    2121    """Place any commands to setup foo here""" 
    2222    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) 
    2424 
    2525    from cows_wps.model.session import engine 
  • cows_wps/trunk/cows_wps/wsgiapp.py

    r5615 r6877  
    2020from cows_wps.utils.setenv import setenv_wps 
    2121 
    22 def load_environment(global_conf, app_conf): 
    23     """Configure the Pylons environment via the ``pylons.config`` 
    24     object 
     22def load_environment(global_conf, app_conf, set_env = True): 
     23    """ 
     24    Configure the Pylons environment via the ``pylons.config`` object. 
    2525    """ 
    2626    # Pylons paths 
     
    4444    # CONFIGURATION OPTIONS HERE (note: all config options will override 
    4545    # any Pylons config options) 
    46     setenv_wps() 
     46    if set_env == True: 
     47        setenv_wps() 
    4748 
    4849 
  • cows_wps/trunk/process_configs/GetWeatherStations.ini

    r6116 r6877  
    11[wps_interface] 
    22process_callable = process_modules.get_weather_stations#GetWeatherStations 
    3 process_type = sync 
     3process_type = async_s 
    44dry_run_enabled = False 
    55internal = False 
  • cows_wps/trunk/process_modules/get_weather_stations.py

    r6873 r6877  
    8080    def dryRun(self, context): 
    8181 
    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.