예제 #1
0
파일: workflow.py 프로젝트: bendavis78/zope
 def getVersions(self, state, id):
     q = Query()
     return q.searchResults(
         Eq(('entry_catalog', 'workflow_state'),
            state) &
         Eq(('entry_catalog', 'workflow_id'),
            id))     
예제 #2
0
파일: workflow.py 프로젝트: bendavis78/zope
 def hasVersionId(self, id):
     q = Query()
     result = q.searchResults(
         Eq(('entry_catalog', 'workflow_id'), id))
     return bool(len(result))