コード例 #1
0
 def checkEventLogForEdits(self, oid):
     req = SearchRequest("oid:" + oid +
                         " AND context:Workflow AND eventType:Save")
     out = ByteArrayOutputStream()
     self.indexer.searchByIndex(req, out, "eventLog")
     solrResult = SolrResult(ByteArrayInputStream(out.toByteArray()))
     return solrResult.getRows() > 0
コード例 #2
0
 def checkEventLogForEdits(self,oid):
     req = SearchRequest("oid:"+oid +" AND context:Workflow AND eventType:Save")
     out = ByteArrayOutputStream()        
     self.indexer.searchByIndex(req, out, "eventLog")
     solrResult = SolrResult(ByteArrayInputStream(out.toByteArray()))
     return solrResult.getRows() > 0
コード例 #3
0
 def __packageIndexed(self, oid):
     req = SearchRequest("storage_id:%s" % oid)
     out = ByteArrayOutputStream()
     self.indexer.search(req, out)
     solrResult = SolrResult(ByteArrayInputStream(out.toByteArray()))
     return solrResult.getRows() > 0
コード例 #4
0
 def __packageIndexed(self, oid):
     req = SearchRequest("storage_id:%s" % oid)
     out = ByteArrayOutputStream()
     self.indexer.search(req, out)
     solrResult = SolrResult(ByteArrayInputStream(out.toByteArray()))
     return solrResult.getRows() > 0