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

Better support for running discovery without security.

Location:
TI05-delivery/ows_framework/trunk/ows_server/ows_server
Files:
2 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): 
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/templates/ndgPage.kid

    r3119 r3134  
    5252            <span py:replace="helpIcon('ns_help')"/> 
    5353         </form> 
    54          </td>--><td align="right"> 
     54         </td>--><td py:if="not g.standalone" align="right"> 
    5555            <span py:if="'ndgSec' in session" id="loginBar"> 
    5656            <span py:replace="logOut()"/></span> 
Note: See TracChangeset for help on using the changeset viewer.