(cls, pop_security=True)
return site
Set the global site for this "session"
Set the global site for this "session"
Set the global site for this session
def pop_site(cls, pop_security=True):
        '''Set the global site for this "session"'''
        sites = Container.get("sites")

        if sites == None:
            return ""
        site = None
        if sites:
            site = sites.pop()

        if not pop_security:
            return site


        security_list = Container.get("Environment:security_list")

        if security_list:

            security = security_list.pop()

            if security:
                Environment.set_security(security)


        return site
def pop_site ( cls , pop_security = True ) : sites = Container . get ( "sites" ) if sites == None : return "" site = None if sites : site = sites . pop ( ) if not pop_security : return site security_list = Container . get ( "Environment:security_list" ) if security_list : security = security_list . pop ( ) if security : Environment . set_security ( security ) return site