예제 #1
0
 def tearDownPloneSite(self, portal):
     solr_settings = SolrControlPanelAdapter(portal)
     solr_settings.setActive(False)
     solr_settings.setPort(8983)
     solr_settings.setBase('/solr')
예제 #2
0
 def setUpPloneSite(self, portal):
     applyProfile(portal, 'collective.solr:search')
     solr_settings = SolrControlPanelAdapter(portal)
     solr_settings.setActive(self.solr_active)
     solr_settings.setPort(self.solr_port)
     solr_settings.setBase(self.solr_base)