Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
person
Commits
c8bb97aba31b
Commit
74639a97
authored
Sep 09, 2014
by
Julien Cristau
Browse files
Fix cubicweb 3.15 deprecation warning
The selectors module was renamed to predicates.
parent
d0b1790ed987
Changes
4
Hide whitespace changes
Inline
Side-by-side
__pkginfo__.py
View file @
c8bb97ab
...
...
@@ -19,7 +19,7 @@ classifiers = [
'Programming Language :: JavaScript'
,
]
__depends__
=
{
'cubicweb'
:
'>= 3.
9
.0'
}
__depends__
=
{
'cubicweb'
:
'>= 3.
15
.0'
}
__recommends__
=
{
'cubicweb-addressbook'
:
None
}
...
...
debian/control
View file @
c8bb97ab
...
...
@@ -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
...
...
hooks.py
View file @
c8bb97ab
from
cubicweb.
selector
s
import
is_instance
from
cubicweb.
predicate
s
import
is_instance
from
cubicweb.sobjects.notification
import
ContentAddedView
class
PersonAddedView
(
ContentAddedView
):
...
...
views.py
View file @
c8bb97ab
...
...
@@ -9,7 +9,7 @@ __docformat__ = "restructuredtext en"
from
logilab.mtconverter
import
xml_escape
from
cubicweb.schema
import
display_name
from
cubicweb.
selector
s
import
is_instance
,
score_entity
from
cubicweb.
predicate
s
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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment