Exemple #1
0
    def __init__(self):

        try:
            # initialize the white list service
            self.whitelist = LocalWhiteList(settings.IDP_WHITELIST)

            # login URLs
            self.url1 = "/login/"
            self.url2 = "/openid/login/"

            self.init = True

        except AttributeError:
            # no entry in $COG_CONFIG_DIR/cog_settings.cfg
            self.init = False
        except OSError:
            # OSError: [Errno 2] No such file or directory: '/esg/config/esgf_idp_static.xml'
            self.init = False