Mercurial > hg > MPIWGWeb
changeset 264:0cfe34c454ff new_pro_struct
setter for project type. change default visible project type.
author | casties |
---|---|
date | Mon, 18 Aug 2014 14:47:28 +0200 |
parents | 738129610f36 |
children | 9adba5461dfa |
files | MPIWGProjects.py zpt/project/project_index_html.zpt |
diffstat | 2 files changed, 5 insertions(+), 25 deletions(-) [+] |
line wrap: on
line diff
--- a/MPIWGProjects.py Wed Aug 13 13:04:48 2014 +0200 +++ b/MPIWGProjects.py Mon Aug 18 14:47:28 2014 +0200 @@ -568,6 +568,10 @@ t = getattr(self, 'projectType', None) return t + def setProjectType(self, s): + """set the type of project""" + self.projectType = s + def getMPIWGProject(self): """Return this project for acquisition."""
--- a/zpt/project/project_index_html.zpt Wed Aug 13 13:04:48 2014 +0200 +++ b/zpt/project/project_index_html.zpt Mon Aug 18 14:47:28 2014 +0200 @@ -80,30 +80,6 @@ <div tal:content="structure python:here.getDescription(filter=True)">Project description</div> </div> - <!-- sub-project thumbs --> - <!-- <div class="box"> - <div tal:define="projects python:here.getProjectsAsList(start=pNum, filter=lambda p:p.getNumber()!=pNum and p.getProjectType()=='Individual Project');" - tal:attributes="class python:test(len(projects)>3, 'ajaxSlider', None);"> - <div class="row triple"> - <div class="col" tal:repeat="project python:projects[:3]"> - <div class="mini project" tal:define="url python:project.getUrl(baseUrl=proBaseUrl)"> - <div class="thumb"> - <a tal:attributes="href url"><img - tal:attributes="src python:project.getThumbUrl(default=root+'/images/dummy_thumb.jpg')"/></a> - </div> - <div class="title"> - <a tal:attributes="href url" tal:content="project/getLabel"> - Mental Models in the History of Knowledge - </a> - </div> - <div class="author" tal:content="python:project.getContent('xdata_01')"> - Matteo Valleriani, Juergen Renn - </div> - </div> - </div> - </div><!-- /row --> - <!-- </div><!-- /item --> - <!-- </div> --> </div><!-- /center --> <!-- right column --> @@ -272,7 +248,7 @@ <!-- subrow --> <div id="subrow" metal:fill-slot="subrow" - tal:define="projects python:here.getProjectsAsList(start=pNum, filter=lambda p:p.getNumber()!=pNum and p.getProjectType() in [None, 'Individual Project']);" + tal:define="projects python:here.getProjectsAsList(start=pNum, filter=lambda p:p.getNumber()!=pNum and p.getProjectType() in [None, 'Project']);" tal:condition="projects"> <div class="leftbox"></div> <div class="main">