Commit 74639a97 authored by Julien Cristau's avatar Julien Cristau
Browse files

Fix cubicweb 3.15 deprecation warning

The selectors module was renamed to predicates.
parent d0b1790ed987
......@@ -19,7 +19,7 @@ classifiers = [
'Programming Language :: JavaScript',
]
__depends__ = {'cubicweb': '>= 3.9.0'}
__depends__ = {'cubicweb': '>= 3.15.0'}
__recommends__ = {'cubicweb-addressbook': None}
......
......@@ -11,7 +11,7 @@ XS-Python-Version: >= 2.6
Package: cubicweb-person
Architecture: all
Depends:
cubicweb-common (>= 3.9.0),
cubicweb-common (>= 3.15.0),
${python:Depends},
${misc:Depends},
Recommends: cubicweb-addressbook
......
from cubicweb.selectors import is_instance
from cubicweb.predicates import is_instance
from cubicweb.sobjects.notification import ContentAddedView
class PersonAddedView(ContentAddedView):
......
......@@ -9,7 +9,7 @@ __docformat__ = "restructuredtext en"
from logilab.mtconverter import xml_escape
from cubicweb.schema import display_name
from cubicweb.selectors import is_instance, score_entity
from cubicweb.predicates import is_instance, score_entity
from cubicweb.web import uicfg, action
from cubicweb.web.views import baseviews, primary, vcard
from cubicweb.web.facet import AttributeFacet
......
Supports Markdown
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