--- MPIWGWeb/MPIWGStaff.py 2008/09/05 14:08:24 1.10.2.57
+++ MPIWGWeb/MPIWGStaff.py 2008/09/12 15:54:49 1.10.2.61
@@ -22,6 +22,7 @@ import time
import logging
import email
import re
+from OFS.Cache import Cacheable
from MPIWGHelper import *
#ersetzt logging
@@ -78,7 +79,7 @@ def createNewDBEntry(self,publish_the_da
# self.ZSQLQuery(queryStr)
return True,msg
-class MPIWGStaff(CatalogAware,ZSQLExtendFolder):
+class MPIWGStaff(CatalogAware,ZSQLExtendFolder,Cacheable):
"""Staff"""
meta_type="MPIWGStaff"
@@ -115,9 +116,10 @@ class MPIWGStaff(CatalogAware,ZSQLExtend
#logging.error("NEW KEY:%s"%(self.firstName+'_'+self.lastName).lower().replace(' ',''))
return (self.firstName+'_'+self.lastName).lower().replace(' ','')
- def getConnectionObj(self):#ueberschreibe connection id methode
-
- return getattr(self.de,self.de.connection_id)
+ def getConnectionObj(self):
+ """returns connection id (from root)"""
+ root = self.getMPIWGRoot()
+ return root.getConnectionObj()
def isPublished(self):
"""gib publications status aus der datenbank aus"""
@@ -163,7 +165,7 @@ class MPIWGStaff(CatalogAware,ZSQLExtend
self.publicationSelectionMode=publicationSelectionMode
if RESPONSE:
- self.redirect(RESPONSE,"
Current work:
Curriculum Vitae: