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

Line 
1import logging
2import copy
3
4#from cows_wps.utils.create_process_config import createProcessConfig
5
6from cows_wps.lib.ui.proc_config_convertor import ProcConfigConvertor
7from cows_wps.utils.parse_capabilities_config import caps_config_dict
8
9#from cows_wps.renderer.form_renderer import FormRenderer
10
11log = logging.getLogger(__name__)
12
13
14class ProcConfig(object):
15
16    internal_procs = ("StatusTestProcess", "SyncTest1", "AsyncTest",
17                      "WaitForFileDeletionCached", "WaitForAllFilesToBeDeleted",
18                      "WaitForFileDeletion", "ProcessTemplate")
19
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
24    def getProcList(self):
25        proc_dict = {}
26        log.warn("%s" % caps_config_dict.keys())
27
28        for proc_id in caps_config_dict["Identifiers"]:
29            if proc_id not in self.internal_procs:
30                proc_dict[proc_id] = proc_id
31
32        return proc_dict
33
Note: See TracBrowser for help on using the repository browser.