Changeset 7611 for cows_wps


Ignore:
Timestamp:
18/10/10 09:42:18 (9 years ago)
Author:
astephen
Message:

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

Location:
cows_wps/trunk/cows_wps
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cows_wps/trunk/cows_wps/controllers/submit.py

    r7387 r7611  
    100100            return "Please provide an argument proc_id=<Something>" 
    101101 
     102        # Temporary check on whetehr form should be visible 
     103        pc = ProcConfig() 
     104        if proc in pc.hidden_procs: 
     105            renderer = UIPageRenderer() 
     106            msg = "Sorry, the process '%s' is not yet available to users." % proc 
     107            resp = renderer.render("WPS Warning", 
     108                               [("Process not yet available", msg)]) 
     109            return resp 
     110 
    102111        args = {} 
    103112        for (k, v) in request.params.items(): 
  • cows_wps/trunk/cows_wps/lib/ui/proc_config.py

    r7095 r7611  
    1818                      "WaitForFileDeletion", "ProcessTemplate") 
    1919 
     20    hidden_procs = ("SubsetPPFile", "NCDumpIt", "CFCheck", "ListPPFileHeader",  
     21                    "WCSWrapper") 
     22 
    2023    def __init__(self): 
    2124        # Set arg to be picked up by calling code to determine whether a bbox is needed/rendered 
     
    2730 
    2831        for proc_id in caps_config_dict["Identifiers"]: 
    29             if proc_id not in self.internal_procs: 
     32            if proc_id not in self.internal_procs and proc_id not in self.hidden_procs: 
    3033                proc_dict[proc_id] = proc_id 
    3134 
Note: See TracChangeset for help on using the changeset viewer.