Commit 5f40370a authored by Nicolas Chauvat's avatar Nicolas Chauvat
Browse files

[facet] add civility facet

parent 0c7db0aa03d0
......@@ -11,6 +11,7 @@ from logilab.mtconverter import xml_escape
from cubicweb.selectors import implements, rql_condition
from cubicweb.web import uicfg, action
from cubicweb.web.views import baseviews, primary, vcard
from cubicweb.web.facet import AttributeFacet
for attr in ('civility', 'description', 'firstname', 'surname'):
uicfg.primaryview_section.tag_attribute(('Person', attr), 'hidden')
......@@ -117,4 +118,9 @@ class AddPersonFromEmailAction(action.LinkToEntityAction):
rtype = 'use_email'
target = 'subject'
## facets #####################################################################
class CivilityFacet(AttributeFacet):
id = 'civility-facet'
__select__ = implements('Person')
rtype = 'civility'
Markdown is supported
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