def mode(self):
        """returns an object to work with the site mode"""
        if self._resources is None:
            self.__init()
        if "mode" in self._resources:
            url = self._url + "/mode"
            return _mode.Mode(url=url,
                              securityHandler=self._securityHandler,
                              proxy_url=self._proxy_url,
                              proxy_port=self._proxy_port,
                              initialize=True)
        else:
            return None
def mode ( self ) : if self . _resources is None : self . __init ( ) if "mode" in self . _resources : url = self . _url + "/mode" return _mode . Mode ( url = url , securityHandler = self . _securityHandler , proxy_url = self . _proxy_url , proxy_port = self . _proxy_port , initialize = True ) else : return None
returns an object to work with the site mode