--- MPIWGWeb/MPIWGStaff.py 2004/10/01 16:44:36 1.6 +++ MPIWGWeb/MPIWGStaff.py 2004/10/01 18:03:43 1.8 @@ -10,11 +10,11 @@ from Globals import package_home def getTemplate(self, tpName): """get a template file either form the instance or from the product""" ext=self.ZopeFind(self.aq_parent,obj_ids=[tpName]) - if ext: - return getattr(self,ext[0][1].getId()) - - pt=PageTemplateFile(os.path.join(package_home(globals()), 'zpt/'+tpName)).__of__(self) + pt = getattr(self,ext[0][1].getId()) + else: + pt=PageTemplateFile(os.path.join(package_home(globals()), 'zpt/'+tpName)).__of__(self) + assert(pt) return pt class MPIWGStaff(ZSQLExtendFolder): @@ -40,17 +40,17 @@ class MPIWGStaff(ZSQLExtendFolder): def publications_full(self): """show publication""" - pt=getTemplate(self, "publications_full") + pt=getTemplate(self, "publications_full_main") return pt() def talks_full(self): """show talks""" - pt=getTemplate(self, 'talks_full') + pt=getTemplate(self, 'talks_full_main') return pt() def teaching_full(self): """show talks""" - pt=getTemplate(self, 'teaching_full') + pt=getTemplate(self, 'teaching_full_main') return pt() def changeMPIWGStaffForm(self):