Add a fixme on data object vocabulary for archive unit component
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 20 Oct 2016 00:10:02 +0200
changeset 1926 cbcc11b64d08
parent 1925 d62432403bed
child 1943 e958e8bd54c6
Add a fixme on data object vocabulary for archive unit component Proper fix has to be discussed, in the mean time don't crash.
views/dataobject.py
--- a/views/dataobject.py	Wed Oct 19 23:10:51 2016 +0200
+++ b/views/dataobject.py	Thu Oct 20 00:10:02 2016 +0200
@@ -47,6 +47,9 @@
     def _render_triggers(self, w, domid, form, field, rtype):
         parent, container = parent_and_container(form.edited_entity)
         assert container is not None
+        if container.cw_etype != 'SEDAArchiveTransfer':
+            w('XXX FIXME')
+            return
         req = form._cw
         try:
             constraint = RDEF_CONSTRAINTS[(form.edited_entity.cw_etype, field.name)]