Mercurial > hg > MPIWGWeb
changeset 195:124efbedd35b
publish CV and publications on personal pages
author | dwinter |
---|---|
date | Thu, 20 Jun 2013 14:44:30 +0200 |
parents | 45984e00665f |
children | b67bfb997079 |
files | MPIWGStaff.py zpt/staff/member_index_html.zpt |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/MPIWGStaff.py Thu Jun 20 14:00:13 2013 +0200 +++ b/MPIWGStaff.py Thu Jun 20 14:44:30 2013 +0200 @@ -634,7 +634,7 @@ if data.get('cv_pdf',None): cvName ="%s_cv.pdf"%self.getUsername() cvName=cvName.encode('utf-8') - logging.debug("CCC") + if not hasattr(ob,cvName): cvFile = ExtFile.ExtFile(cvName,cvName) ob._setObject(cvName,cvFile)
--- a/zpt/staff/member_index_html.zpt Thu Jun 20 14:00:13 2013 +0200 +++ b/zpt/staff/member_index_html.zpt Thu Jun 20 14:44:30 2013 +0200 @@ -154,10 +154,10 @@ <div class="sideblock"> <h2>Related Material</h2> - <div class="item download" tal:condition="python:getattr(here,'cv_publish','no')=='yes'"> + <div class="item download" tal:condition="python:here.content.cv_p=='yes'"> <a target="_blank" href="downloadCV">Download Curriculum Vitae</a> </div> - <div class="item download" tal:condition="python:getattr(here,'publications_publish','no')=='yes'"> + <div class="item download" tal:condition="python:here.content.publications_p=='yes'"> <a target="_blank" href="downloadPublications">Download Publication List</a> <br /> </div> <div class="item external">