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

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

File:
1 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(): 
Note: See TracChangeset for help on using the changeset viewer.