- Timestamp:
- 22/05/08 15:08:26 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TI05-delivery/ows_framework/trunk/ows_server/ows_server/controllers/wayf.py
r3893 r3919 3 3 log = logging.getLogger(__name__) 4 4 5 try: 6 from ndg.security.server.sso.sso.controllers.wayf import WayfController as\ 7 _WayfController 8 9 class WayfController(_WayfController): 10 '''Provides the pylons controller for Where Are You From. This is a 11 wrapper class. - All functionality is provided from 12 ndg.security.server.sso.sso the NDG Security Single Sign On Service 13 package''' 14 15 except ImportError, e: 16 from warnings import warn 17 warn("Importing WayfController for Single Sign On Service: %s" % e, 18 RuntimeWarning) 19 20 # Default to base version to avoid an exception if 'wayf' is invoked 21 class WayfController(BaseController): 22 ''' Raise a 404 error for case where Single Sign ON Service is disabled 23 ''' 24 def index(self): 25 log.info("Single Sign On Service is disabled setting 404 error...") 26 abort(404) 5 class WayfController(BaseController): 6 def index(self): 7 abort(401) 8 #try: 9 # from ndg.security.server.sso.sso.controllers.wayf import WayfController as\ 10 # _WayfController 11 # 12 # class WayfController(_WayfController): 13 # '''Provides the pylons controller for Where Are You From. This is a 14 # wrapper class. - All functionality is provided from 15 # ndg.security.server.sso.sso the NDG Security Single Sign On Service 16 # package''' 17 # 18 #except ImportError, e: 19 # from warnings import warn 20 # warn("Importing WayfController for Single Sign On Service: %s" % e, 21 # RuntimeWarning) 22 # 23 # # Default to base version to avoid an exception if 'wayf' is invoked 24 # class WayfController(BaseController): 25 # ''' Raise a 404 error for case where Single Sign ON Service is disabled 26 # ''' 27 # def index(self): 28 # log.info("Single Sign On Service is disabled setting 404 error...") 29 # abort(404)
Note: See TracChangeset
for help on using the changeset viewer.