changeset 30:0bad2371550e

minor error fixed
author dwinter
date Mon, 27 May 2013 23:04:00 +0200
parents 417b6c14057b
children 8bb5fef365b5
files MPIWGThesaurus.py zpt/levelFormatted.zpt
diffstat 2 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/MPIWGThesaurus.py	Mon May 27 22:39:15 2013 +0200
+++ b/MPIWGThesaurus.py	Mon May 27 23:04:00 2013 +0200
@@ -1490,7 +1490,9 @@
         ret=[]
         for project in projects:
             logging.debug("found:"+project)
-            ret.append(self.getProjectDetails(project))
+            proj =self.getProjectDetails(project);
+            if proj is not None:
+                ret.append(proj)
 
         return ret
     
@@ -1498,7 +1500,7 @@
         project=getattr(self.projects,getID,None)
         if project is None:
             logging.debug("no project!! " +getID)
-            return
+            return None
         
         link="/en/research/projects/"+getID
         
--- a/zpt/levelFormatted.zpt	Mon May 27 22:39:15 2013 +0200
+++ b/zpt/levelFormatted.zpt	Mon May 27 23:04:00 2013 +0200
@@ -19,7 +19,7 @@
 					tal:repeat="proj
 					     python:here.getProjectsWithTag(options['type'],here.getTitle(level1))">
 
-					<tal:x on-error="python:'ERROR'">
+					<tal:x >
 
 						<td><a tal:attributes="href python:proj[0]"><img
 								class="thumb" tal:define="imgUrl python:proj[3]"
@@ -63,7 +63,7 @@
 						<div class="level2 fold_body2 indent li_project projectsWindow">
 							<table class="items ">
 								<tr class="line" tal:repeat="proj python:subitems">
-									<tal:x on-error="python:'ERROR'">
+									<tal:x>
 
 										<td><a tal:attributes="href python:proj[0]"><img
 												class="thumb" tal:define="imgUrl python:proj[3]"