equal
deleted
inserted
replaced
1274 wfof = (wfof,) |
1274 wfof = (wfof,) |
1275 def _missing_wf_rel(etype): |
1275 def _missing_wf_rel(etype): |
1276 return 'missing workflow relations, see make_workflowable(%s)' % etype |
1276 return 'missing workflow relations, see make_workflowable(%s)' % etype |
1277 for etype in wfof: |
1277 for etype in wfof: |
1278 eschema = self.repo.schema[etype] |
1278 eschema = self.repo.schema[etype] |
|
1279 etype = unicode(etype) |
1279 if ensure_workflowable: |
1280 if ensure_workflowable: |
1280 assert 'in_state' in eschema.subjrels, _missing_wf_rel(etype) |
1281 assert 'in_state' in eschema.subjrels, _missing_wf_rel(etype) |
1281 assert 'custom_workflow' in eschema.subjrels, _missing_wf_rel(etype) |
1282 assert 'custom_workflow' in eschema.subjrels, _missing_wf_rel(etype) |
1282 assert 'wf_info_for' in eschema.objrels, _missing_wf_rel(etype) |
1283 assert 'wf_info_for' in eschema.objrels, _missing_wf_rel(etype) |
1283 rset = self.rqlexec( |
1284 rset = self.rqlexec( |