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
0e0de9e2dbe6
Commit
62b26201
authored
May 12, 2011
by
Sylvain Thénault
Browse files
no need to mix
parent
b7c4bdb6c465
Changes
1
Hide whitespace changes
Inline
Side-by-side
entities.py
View file @
0e0de9e2
"""entity class
es for optional
person entities
"""entity class person entities
:organization: Logilab
:copyright: 2003-201
0
LOGILAB S.A. (Paris, FRANCE), all rights reserved.
:copyright: 2003-201
1
LOGILAB S.A. (Paris, FRANCE), all rights reserved.
:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
"""
__docformat__
=
"restructuredtext en"
from
cubicweb.mixins
import
EmailableMixIn
from
cubicweb.entities
import
AnyEntity
,
fetch_config
class
Person
(
EmailableMixIn
,
AnyEntity
):
class
Person
(
AnyEntity
):
"""customized class for Person entities"""
__regid__
=
'Person'
fetch_attrs
,
fetch_order
=
fetch_config
([
'surname'
,
'firstname'
])
...
...
Write
Preview
Markdown
is supported
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