def featureServers(self):
        """gets the hosting feature AGS Server"""
        if self.urls == {}:
            return {}

        featuresUrls = self.urls['urls']['features']
        if 'https' in featuresUrls:
            res = featuresUrls['https']
        elif 'http' in featuresUrls:
            res = featuresUrls['http']
        else:
            return None

        services = []
        for urlHost in res:
            if self.isPortal:
                services.append(AGSAdministration(
                    url='%s/admin' % urlHost,
                    securityHandler=self._securityHandler,
                    proxy_url=self._proxy_url,
                    proxy_port=self._proxy_port))
            else:
                services.append(Services(
                    url='https://%s/%s/ArcGIS/admin' % (urlHost, self.portalId),
                    securityHandler=self._securityHandler,
                    proxy_url=self._proxy_url,
                    proxy_port=self._proxy_port))

        return services
def featureServers ( self ) : if self . urls == { } : return { } featuresUrls = self . urls [ 'urls' ] [ 'features' ] if 'https' in featuresUrls : res = featuresUrls [ 'https' ] elif 'http' in featuresUrls : res = featuresUrls [ 'http' ] else : return None services = [ ] for urlHost in res : if self . isPortal : services . append ( AGSAdministration ( url = '%s/admin' % urlHost , securityHandler = self . _securityHandler , proxy_url = self . _proxy_url , proxy_port = self . _proxy_port ) ) else : services . append ( Services ( url = 'https://%s/%s/ArcGIS/admin' % ( urlHost , self . portalId ) , securityHandler = self . _securityHandler , proxy_url = self . _proxy_url , proxy_port = self . _proxy_port ) ) return services
gets the hosting feature AGS Server