Commit ba64e74d authored by Katia Saurfelt's avatar Katia Saurfelt
Browse files

Backed out changeset 0db28829b380

--HG--
branch : seda21
parent 246fcca0056f
......@@ -167,22 +167,6 @@ class ArchiveTransferDataObjectsTab(viewlib.SubObjectsTab):
('seda_physical_data_object', 'object', 'SEDAPhysicalDataObject'),
]
def display_subobjects_list(self, entity):
for relation, rtype, target in self.rtype_role_targets:
to_union = []
to_union.append('(Any X Where A is SEDAArchiveTransfer, A eid %(eid)s, '
f'X {relation} A, X is {target})')
to_union.append('(Any X Where A is SEDAArchiveTransfer, A eid %(eid)s, '
f'X {relation} G, G is SEDADataObjectGroup, '
f'G seda_data_object_group A, X is {target})')
query = ' UNION '.join(to_union)
rset = self._cw.execute(query, {'eid': entity.eid})
if rset:
if target is not None:
self.w('<h2>%s</h2>' % self._cw.__(target + '_plural'))
self._cw.view('list', rset=rset, parent=self.parent(entity), w=self.w,
subvid=self.subvid, tabid=self.tabid)
_('creating SEDABinaryDataObject (SEDABinaryDataObject seda_binary_data_object '
'SEDAArchiveTransfer %(linkto)s)')
_('creating SEDAPhysicalDataObject (SEDAPhysicalDataObject seda_physical_data_object '
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment