Ignore:
Timestamp:
05/10/10 16:23:24 (10 years ago)
Author:
astephen
Message:

fixed wps namespace in lookup.

File:
1 edited

Legend:

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

    r7535 r7573  
    233233        # and this set of arguments 
    234234        rh = RoleHandler() 
    235         authorisedRoles = rh.getRoleNumberFromProcessIDAndArgs(identifier, arg_dict)  
     235 
     236        try: 
     237            authorisedRoles = rh.getRoleNumberFromProcessIDAndArgs(identifier, arg_dict)  
     238        except: 
     239            raise OwsError("""The WPS does not recognise the resource you are trying to access. 
     240Since it cannot reconcile the access restrictions the resource cannot be made available. 
     241Please report this problem if you believe that the resource you have requested should be visible to you.""") 
    236242 
    237243        # Update the cache with any completed requests before consulting the cache 
Note: See TracChangeset for help on using the changeset viewer.