--- MPIWGWeb/MPIWGStaff.py 2008/08/20 12:24:29 1.10.2.44
+++ MPIWGWeb/MPIWGStaff.py 2008/08/25 12:49:49 1.10.2.48
@@ -202,7 +202,7 @@ class MPIWGStaff(CatalogAware,ZSQLExtend
if RESPONSE:
RESPONSE.redirect(self.REQUEST['HTTP_REFERER'])
-
+
def getPublishImage(self):
"""publish the image??, default no"""
@@ -362,6 +362,7 @@ class MPIWGStaff(CatalogAware,ZSQLExtend
return pt()
mainEditFile=PageTemplateFile(os.path.join(package_home(globals()),'zpt','editMPIWGStaff_main.zpt'))
+ addPublicationsBib=PageTemplateFile(os.path.join(package_home(globals()),'zpt','addPublicationsBib.zpt'))
def getPathStyle(self, path, selected, style=""):
"""returns a string with the given style + 'sel' if path == selected."""
@@ -514,11 +515,11 @@ class MPIWGStaff(CatalogAware,ZSQLExtend
for found in self.sortPriority(founds):
ret+=found.interest+"
"
- founds=self.ZSQLInlineSearch(_table='current_work',key_main=person.key)
- if founds:
+
+ if (person.current_work) and (not person.current_work==""):
ret="Current work:
"
- for found in self.sortPriority(founds):
- ret+=found.current+"
"
+
+ ret+=person.current_work+"
"
ret+="
"
ret+=self.formatAscii(person.cv)
@@ -531,6 +532,14 @@ class MPIWGStaff(CatalogAware,ZSQLExtend
pt=PageTemplateFile(os.path.join(package_home(globals()),'zpt','editDownloads.zpt')).__of__(self)
return pt()
+ security.declareProtected('View management screens','editAdditionalLinks.zpt')
+ def editAdditionalLinks(self):
+ """editiere die Downloads von der Webseite"""
+
+ pt=PageTemplateFile(os.path.join(package_home(globals()),'zpt','editAdditionalLinks.zpt')).__of__(self)
+ return pt()
+
+
security.declareProtected('View management screens','editAwards')
def editAwards(self,awards=None,oid=None,RESPONSE=None):
"""edit a awards"""