server/migractions.py
changeset 10473 23a2fa8cb725
parent 10365 21461f80f348
child 10553 1d824df4f2bd
equal deleted inserted replaced
10472:7dd84b69c7d4 10473:23a2fa8cb725
  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(