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

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

Fixes to hide procs that are in devt - for now.

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    hidden_procs = ("SubsetPPFile", "NCDumpIt", "CFCheck", "ListPPFileHeader", 
21                    "WCSWrapper")
22
23    def __init__(self):
24        # Set arg to be picked up by calling code to determine whether a bbox is needed/rendered
25        self.bbox_arg_found = False
26
27    def getProcList(self):
28        proc_dict = {}
29        log.warn("%s" % caps_config_dict.keys())
30
31        for proc_id in caps_config_dict["Identifiers"]:
32            if proc_id not in self.internal_procs and proc_id not in self.hidden_procs:
33                proc_dict[proc_id] = proc_id
34
35        return proc_dict
36
Note: See TracBrowser for help on using the repository browser.