[saem-devel] [PATCH 8 of 9] [org] Don't use deprecated function of relation widget

Sylvain Thenault sylvain.thenault at logilab.fr
Fri Jan 27 16:02:56 CET 2017


# HG changeset patch
# User Sylvain Thénault <sylvain.thenault at logilab.fr>
# Date 1485331955 -3600
#      Wed Jan 25 09:12:35 2017 +0100
# Node ID 364e8f577d67fa06a1ba00b0ca00ccd4cba1a8b0
# Parent  dbd4241c585447fbf7d1138aeb977e4db0d1cf94
[org] Don't use deprecated function of relation widget

diff --git a/cubicweb_saem_ref/views/org.py b/cubicweb_saem_ref/views/org.py
--- a/cubicweb_saem_ref/views/org.py
+++ b/cubicweb_saem_ref/views/org.py
@@ -180,11 +180,11 @@ class LinkedObjectsTab(SubviewsTabView):
                      % self._cw.__(etype + '_plural').lower())
             validate = js.saem.buildRelationValidate(entity.eid, rtype, role, self.__regid__)
             url = configure_relation_widget(self._cw, divid, search_url, title, True, validate)
             links.append(tags.a(self._cw._(etype), href=url, klass=''))
         if links:
-            rwdg.boostrap_dialog(self.w, self._cw._, divid, u'')
+            rwdg.bootstrap_dialog(self.w, self._cw._, divid, u'')
             self.w(tags.div(id=divid, style='display: none'))
             self.w(dropdown_button(self._cw._('add'), links))
             self.w(tags.div(klass='clearfix'))
 
 


More information about the saem-devel mailing list