Exemple #1
0
 def getVersions(self, state, id):
     q = Query()
     return q.searchResults(
         Eq(('entry_catalog', 'workflow_state'),
            state) &
         Eq(('entry_catalog', 'workflow_id'),
            id))     
Exemple #2
0
 def hasVersionId(self, id):
     q = Query()
     result = q.searchResults(
         Eq(('entry_catalog', 'workflow_id'), id))
     return bool(len(result))