Ignore:
Timestamp:
12/12/07 14:30:22 (13 years ago)
Author:
lawrence
Message:

Better support for running discovery without security.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/models/ndgSecurity.py

    r3018 r3134  
    1010from ows_common.exception_report import OwsError 
    1111from ows_server.lib.security_util import SecuritySession 
    12 from ndg.security.common.SessionMgr import SessionMgrClient, SessionNotFound,\ 
    13     SessionCertTimeError, SessionExpired, InvalidSession, \ 
    14     AttributeRequestDenied 
    15      
    16 def HandleSecurity(*args): 
    17     return SecurityHandler(*args)() 
     12 
     13try:  
     14    from ndg.security.common.SessionMgr import SessionMgrClient, SessionNotFound,\ 
     15        SessionCertTimeError, SessionExpired, InvalidSession, \ 
     16        AttributeRequestDenied 
     17     
     18    def HandleSecurity(*args): 
     19        return SecurityHandler(*args)() 
     20except: 
     21    def HandleSecurity(*args): 
     22        return 0,'Access Control System Not Installed' 
    1823 
    1924class URLCannotBeOpened(Exception): 
Note: See TracChangeset for help on using the changeset viewer.