--- MPIWGWeb/MPIWGProjects.py 2006/11/08 16:36:38 1.47.2.65 +++ MPIWGWeb/MPIWGProjects.py 2006/11/08 21:04:23 1.47.2.66 @@ -170,7 +170,10 @@ class MPIWGLink(SimpleItem): def index_html(self): """index""" - return self.getObj().pt_render(extra_context={'here':self}) + try: + return self.getObj().pt_render(extra_context={'here':self}) + except: + self.REQUEST.RESPONSE.redirect(self.getObj().absolute_url()) def manage_addMPIWGLinkForm(self): @@ -1506,7 +1509,7 @@ class MPIWGRoot(ZSQLExtendFolder): results[id]=[] objId=found.getObject().getId() if not (objId in results[id]): - print "added %s for %s"%(id,objId) + print "d %s for %s"%(id,objId) results[id].append(objId) self.nameIndex=results return results @@ -2601,4 +2604,4 @@ def manage_addMPIWGProject(self,id,RESPO if RESPONSE is not None: - RESPONSE.redirect('manage_main') + RESPONSE.redirect('manage_main') \ No newline at end of file