def _setupResourceData(self): #Push the filter design document for the ressource_data. setup_utils.CreateDB( self._server, dblist=[self._nodeConfig.get("couch_info", "resourcedata")], deleteDB=True) couch_utils.pushCouchApp( _RESOURCE_DATA_FILTER_APP, urlparse.urljoin( self._nodeConfig.get("couch_info", "server"), self._nodeConfig.get("couch_info", "resourcedata")))
def _setupNode(self): #create the couch db databases self._server = couchdb.Server( url=self._nodeConfig.get("couch_info", "server")) setup_utils.CreateDB(self._server, dblist=self._getNodeDatabaseList(), deleteDB=True) policy = dict(nodeTemplate.network_policy_description) setup_utils.PublishDoc(self._server, self._nodeConfig.get("couch_info", "network"), 'network_policy_description', policy) self._setupResourceData()