Ignore:
Timestamp:
19/10/10 16:56:41 (10 years ago)
Author:
astephen
Message:

Fixes to bugs in responses when not logged in, and added datatypes as
list for GetWeatherStations?.

File:
1 edited

Legend:

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

    r7116 r7633  
    105105        (args, bad_args) = self._parseArgs(admin = admin) 
    106106 
     107        renderer = UIPageRenderer() 
     108 
    107109        if admin == False: 
    108110            try: 
     
    110112                args["user_id_match"] = user_id 
    111113            except: 
    112                 raise Exception("Jobs page is only visible to a valid user or system administrator.  Please login.") 
     114                return renderer.render("Jobs page",  
     115                                [("Jobs page - login required", "The jobs page is only visible to a valid user or system administrator.  Please login.")]) 
    113116        else: 
    114117            user_id = None 
Note: See TracChangeset for help on using the changeset viewer.