def portals(self): """returns the Portals class that provides administration access into a given organization""" url = "%s/portals" % self.root return _portals.Portals(url=url, securityHandler=self._securityHandler, proxy_url=self._proxy_url, proxy_port=self._proxy_port)
def portals(self, portalId=None): """ returns the portals class to allow portals mofications """ if self._url.endswith("/rest"): url = self._url else: url = self._url + "/rest" url += "/portals" return _portals.Portals(url, portalId, securityHandler=self._securityHandler, proxy_url=self._proxy_url, proxy_port=self._proxy_port)