parameters: (cls, pop_security=True)
return_statement: return site
docstring: Set the global site for this "session"
docstring_summary: Set the global site for this "session"
docstring_tokens: Set the global site for this session
function: 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
function_tokens: 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