source: cows_wps/trunk/cows_wps/lib/ui/proc_config.py @ 7095

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/cows_wps/trunk/cows_wps/lib/ui/proc_config.py@7095
Revision 7095, 1015 bytes checked in by astephen, 10 years ago (diff)

fixing up jobs page and moving renderer code into renderer package

RevLine 
[5940]1import logging
[5958]2import copy
[5940]3
[7095]4#from cows_wps.utils.create_process_config import createProcessConfig
[5955]5
[5940]6from cows_wps.lib.ui.proc_config_convertor import ProcConfigConvertor
7from cows_wps.utils.parse_capabilities_config import caps_config_dict
8
[7095]9#from cows_wps.renderer.form_renderer import FormRenderer
[5955]10
[5940]11log = logging.getLogger(__name__)
12
13
14class ProcConfig(object):
15
[5963]16    internal_procs = ("StatusTestProcess", "SyncTest1", "AsyncTest",
17                      "WaitForFileDeletionCached", "WaitForAllFilesToBeDeleted",
[6922]18                      "WaitForFileDeletion", "ProcessTemplate")
[5963]19
[6125]20    def __init__(self):
21        # Set arg to be picked up by calling code to determine whether a bbox is needed/rendered
22        self.bbox_arg_found = False
23
[5940]24    def getProcList(self):
25        proc_dict = {}
[7095]26        log.warn("%s" % caps_config_dict.keys())
[5940]27
28        for proc_id in caps_config_dict["Identifiers"]:
[5963]29            if proc_id not in self.internal_procs:
30                proc_dict[proc_id] = proc_id
[5940]31
32        return proc_dict
33
Note: See TracBrowser for help on using the repository browser.