[saem-devel] [PATCH 2 of 3 seda] Stop using deprecated function from the relation widget cube

Sylvain Thenault sylvain.thenault at logilab.fr
Thu Feb 23 09:37:07 CET 2017


# HG changeset patch
# User Sylvain Thénault <sylvain.thenault at logilab.fr>
# Date 1487799067 -3600
#      Wed Feb 22 22:31:07 2017 +0100
# Node ID 3b9d0fd5774094e722bc740b6effd1aeb15e63dd
# Parent  455449377946008c9eafe51aac28bd6b273d9696
Stop using deprecated function from the relation widget cube

and so avoid deprecation warning.

diff --git a/views/archivetransfer.py b/views/archivetransfer.py
--- a/views/archivetransfer.py
+++ b/views/archivetransfer.py
@@ -111,11 +111,11 @@ class ArchiveTransferTabbedPrimaryView(t
         _('seda_at_diagnose_tab'),
     ]
 
     def entity_call(self, entity, **kwargs):
         super(ArchiveTransferTabbedPrimaryView, self).entity_call(entity, **kwargs)
-        rwdg.boostrap_dialog(self.w, self._cw._, clone._import_div_id(entity), u'')
+        rwdg.bootstrap_dialog(self.w, self._cw._, clone._import_div_id(entity))
 
 
 class ArchiveTransferCodeListVersionsTab(viewlib.PrimaryTabWithoutBoxes):
     """Tab for code list versions information of an archive transfer."""
     __regid__ = 'seda_at_code_list_versions_tab'
diff --git a/views/archiveunit.py b/views/archiveunit.py
--- a/views/archiveunit.py
+++ b/views/archiveunit.py
@@ -277,11 +277,11 @@ class ArchiveUnitTabbedPrimaryView(tabs.
 
     ]
 
     def entity_call(self, entity, **kwargs):
         super(ArchiveUnitTabbedPrimaryView, self).entity_call(entity, **kwargs)
-        rwdg.boostrap_dialog(self.w, self._cw._, clone._import_div_id(entity), u'')
+        rwdg.bootstrap_dialog(self.w, self._cw._, clone._import_div_id(entity))
 
 
 # main tab for archive unit reference ##########################################
 
 au_ref_pvs = copy_rtag(pvs, __name__,


More information about the saem-devel mailing list