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