Diff for /ECHO_content/ECHO_collection.py between versions 1.201 and 1.202

version 1.201, 2004/12/10 13:48:13 version 1.202, 2005/01/18 15:40:03
Line 74  regexpPage = re.compile(patternPage, re. Line 74  regexpPage = re.compile(patternPage, re.
   
                   
   
 def setECHO_collectionInformation(self,title,label,description,contentType,responsible,credits,weight,coordstrs="",viewClassification=""):  def setECHO_collectionInformation(self,title,label,description,contentType,responsible,credits,weight,coordstrs=""):
   
         """Allegemeine Informationen zu einer ECHO Collection"""          """Allegemeine Informationen zu einer ECHO Collection"""
   
Line 258  class ECHO_resource(Folder,Persistent,EC Line 258  class ECHO_resource(Folder,Persistent,EC
     security=ClassSecurityInfo()      security=ClassSecurityInfo()
     meta_type='ECHO_resource'      meta_type='ECHO_resource'
   
     viewClassificationList=viewClassificationListMaster  #    viewClassificationList=viewClassificationListMaster
   
     getSubCols = ECHO_helpers.getSubCols      getSubCols = ECHO_helpers.getSubCols
   
Line 660  class ECHO_resource(Folder,Persistent,EC Line 660  class ECHO_resource(Folder,Persistent,EC
         """template fuer content"""          """template fuer content"""
         return ECHO_basis.content_html(self,'resource')          return ECHO_basis.content_html(self,'resource')
           
     def getViewClassification(self):  #    def getViewClassification(self):
         if hasattr(self,'viewClassification'):  #        if hasattr(self,'viewClassification'):
             return self.viewClassification  #            return self.viewClassification
         else:  #        else:
             return ""  #            return ""
   
     def getFullTextXML(self,noredirect=None):      def getFullTextXML(self,noredirect=None):
         """getFullTextXML; gives the FullText as an XML Document, and <error></error> if somthing goes wrong."""          """getFullTextXML; gives the FullText as an XML Document, and <error></error> if somthing goes wrong."""
Line 818  class ECHO_resource(Folder,Persistent,EC Line 818  class ECHO_resource(Folder,Persistent,EC
             coordsnew=[]              coordsnew=[]
                   
         self.coords=coordsnew          self.coords=coordsnew
     self.viewClassification=""  #   self.viewClassification=""
   
   
   
Line 1000  class ECHO_resource(Folder,Persistent,EC Line 1000  class ECHO_resource(Folder,Persistent,EC
         self.REQUEST.RESPONSE.setHeader('Content-Type','text/xml')          self.REQUEST.RESPONSE.setHeader('Content-Type','text/xml')
         return writeMetadata(self.metalink,self.metaDataHash)          return writeMetadata(self.metalink,self.metaDataHash)
   
     def changeECHO_resource(self,metalink,link,title,label,description,contentType,responsible,weight,viewClassification="",coords=None,credits=None,RESPONSE=None):      def changeECHO_resource(self,metalink,link,title,label,description,contentType,responsible,weight,coords=None,credits=None,RESPONSE=None):
         """Aenderung der Properties"""          """Aenderung der Properties"""
                   
         setECHO_collectionInformation(self,title,label,description,contentType,responsible,credits,weight)          setECHO_collectionInformation(self,title,label,description,contentType,responsible,credits,weight)
Line 1424  class ECHO_collection(Folder, Persistent Line 1424  class ECHO_collection(Folder, Persistent
   
     security=ClassSecurityInfo()      security=ClassSecurityInfo()
     meta_type='ECHO_collection'      meta_type='ECHO_collection'
     viewClassificationList=viewClassificationListMaster  #    viewClassificationList=viewClassificationListMaster
     displayTypes=displayTypes      displayTypes=displayTypes
   
     path="/mpiwg/online/permanent/shipbuilding"      path="/mpiwg/online/permanent/shipbuilding"
Line 1736  class ECHO_collection(Folder, Persistent Line 1736  class ECHO_collection(Folder, Persistent
          """nothing"""           """nothing"""
      return retStr       return retStr
     
     def getViewClassification(self):  #    def getViewClassification(self):
         if hasattr(self,'viewClassification'):  #        if hasattr(self,'viewClassification'):
             return self.viewClassification  #            return self.viewClassification
         else:  #        else:
             return ""  #            return ""
   
           
     def createRessourcesFromXMLForm(self):      def createRessourcesFromXMLForm(self):
Line 1922  class ECHO_collection(Folder, Persistent Line 1922  class ECHO_collection(Folder, Persistent
   
                   
     security.declarePublic('changeECHO_collection')           security.declarePublic('changeECHO_collection')     
     def changeECHO_collection(self,title,label,description,contentType,responsible,weight,secondaryLink,secondaryLinkTitle,credits=None,sortfield="weight",coords=None,RESPONSE=None,imageTag="",bgcolour="",viewClassification=None,location=None,isAlwaysClickable=None):      def changeECHO_collection(self,title,label,description,contentType,responsible,weight,secondaryLink,secondaryLinkTitle,credits=None,sortfield="weight",coords=None,RESPONSE=None,imageTag="",bgcolour="",location=None,isAlwaysClickable=None):
         """Aenderung der Properties"""          """Aenderung der Properties"""
   
         self.secondaryLink=secondaryLink          self.secondaryLink=secondaryLink
Line 2025  class ECHO_collection(Folder, Persistent Line 2025  class ECHO_collection(Folder, Persistent
   
     def getAllMapAreas(self):      def getAllMapAreas(self):
         """Give list of coordinates"""          """Give list of coordinates"""
         subColTypes=['ECHO_collection','ECHO_resource']          mapColTypes=['ECHO_collection','ECHO_resource']
         areas=[]          areas=[]
         for entrySearch in self.ZopeFind(self,obj_metatypes=subColTypes):          for entry in self.getSubCols(self,subColTypes=mapColTypes):
             object=entrySearch[1]              object=entry
         areas.extend(object.getMapAreas())          areas.extend(object.getMapAreas())
         return areas          return areas
           
Line 2343  class ECHO_root(Folder,Persistent,Implic Line 2343  class ECHO_root(Folder,Persistent,Implic
           
     meta_type="ECHO_root"      meta_type="ECHO_root"
   
     def content_overview_main_t(self):      # testing templates with macros... ROC
         """template for map overview page"""  ##     content_overview_template2 = zptObjectOrFile(None, 'content_overview_template', orphaned=True)
     pt = zptFile(self, 'zpt/ECHO_content_overview_main')  ##     print "COT: ", content_overview_template2, repr(content_overview_template2)
     return pt      
   ##     def content_overview_template(self):
   ##  content_overview_template2._cook_check()
   ##  return content_overview_template2()
   
     ###CDLI adds -> have to be removed      ###Cdli adds -> have to be removed
     def getTablet(self,item):      def getTablet(self,item):
         #print "getTablet"          #print "getTablet"
     try:      try:

Removed from v.1.201  
changed lines
  Added in v.1.202


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>