Fix deprecation warnings
authorNsukami Patrick <ndkpatt at gmail dot com>
Tue, 19 Mar 2019 09:02:43 +0000
changeset 82 fec2bbdeee20
parent 81 5ec2c14fade9
child 83 bfbc0c4e5556
Fix deprecation warnings - fix DeprecationWarning: [3.22] Use 'from cubicweb import _' - fix DeprecationWarning: [3.16] moved to cubicweb.web.views.uicfg - fix DeprecationWarning: [3.15] cubicweb.selectors renamed into cubicweb.predicates
cubicweb_fresh/views/__init__.py
cubicweb_fresh/views/accounting.py
cubicweb_fresh/views/actions.py
--- a/cubicweb_fresh/views/__init__.py	Tue Mar 19 08:27:55 2019 +0000
+++ b/cubicweb_fresh/views/__init__.py	Tue Mar 19 09:02:43 2019 +0000
@@ -1,8 +1,8 @@
 """template-specific forms/views/actions/components"""
 from logilab.common.decorators import monkeypatch
 
-from cubicweb.web import uicfg, formwidgets as fw
-from cubicweb.web.views import basecontrollers
+from cubicweb.web import formwidgets as fw
+from cubicweb.web.views import uicfg, basecontrollers
 
 _afs = uicfg.autoform_section
 _affk = uicfg.autoform_field_kwargs
--- a/cubicweb_fresh/views/accounting.py	Tue Mar 19 08:27:55 2019 +0000
+++ b/cubicweb_fresh/views/accounting.py	Tue Mar 19 09:02:43 2019 +0000
@@ -9,7 +9,8 @@
 
 from logilab.mtconverter import xml_escape
 
-from cubicweb.selectors import is_instance
+from cubicweb import _
+from cubicweb.predicates import is_instance
 from cubicweb.view import EntityView
 
 
--- a/cubicweb_fresh/views/actions.py	Tue Mar 19 08:27:55 2019 +0000
+++ b/cubicweb_fresh/views/actions.py	Tue Mar 19 09:02:43 2019 +0000
@@ -6,7 +6,8 @@
 """
 __docformat__ = "restructuredtext en"
 
-from cubicweb.selectors import is_instance
+from cubicweb import _
+from cubicweb.predicates import is_instance
 from cubicweb.web.action import Action
 
 class AccountingAction(Action):