include profession in deputy page

This commit is contained in:
Frédéric Péters 2011-11-24 00:26:09 +01:00
parent 8d975142aa
commit 66f772ed80
2 changed files with 7 additions and 1 deletions

View File

@ -54,8 +54,10 @@
<dt tal:condition="context/active">CV</dt>
<dd tal:condition="context/active">
<div id="cvDetail" class="copytext">
<h3 tal:condition="context/degrees">Diplômes</h3>
<h3 tal:condition="context/degrees">Formation</h3>
<div tal:condition="context/degrees" tal:content="structure view/degrees"/>
<h3 tal:condition="context/profession">Profession</h3>
<div tal:condition="context/profession" tal:content="structure view/profession"/>
<h3 tal:condition="context/mandates">Mandats politiques exercés antérieurement ou actuellement</h3>
<div tal:condition="context/mandates" tal:content="structure view/mandates"/>
</div>

View File

@ -39,6 +39,10 @@ class View(BrowserView):
mandates = self.context.mandates
return '<ul>' + '\n'.join(u'<li>%s</li>' % x for x in mandates.splitlines() if x.strip()) + '</ul>'
def profession(self):
profession = self.context.profession
return '<ul>' + '\n'.join(u'<li>%s</li>' % x for x in profession.splitlines() if x.strip()) + '</ul>'
def get_commissions_and_roles(self):
intids = component.getUtility(IIntIds)
catalog = component.getUtility(ICatalog)