[domino] adapt to new ihm for the domino workflow element

This commit is contained in:
Benjamin Dauvergne 2012-10-03 15:25:51 +02:00
parent 80a67465ec
commit 61e5f2dfcb
1 changed files with 2 additions and 2 deletions

View File

@ -131,9 +131,9 @@ class AbeliumDominoRegisterFamilyWorkflowStatusItem(WorkflowStatusJumpItem):
form_user.abelium_domino_code_famille = code_interne
form_user.store()
except Exception, e:
if form.get_submit() == 'update_button%s' % self.id:
if form.get_widget('family_id').parse():
msg = _('Unable to update family: %s') % str(e)
elif form.get_submit() == 'create_button%s' % self.id:
else:
msg = _('Unable to create family: %s') % str(e)
evo.comment = msg
logger.exception(msg % formdata.get_user())