version 1.201, 2004/12/10 13:48:13
|
version 1.204, 2005/01/21 16:28:58
|
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 1103 class ECHO_resource(Folder,Persistent,EC
|
Line 1103 class ECHO_resource(Folder,Persistent,EC
|
fields=[] |
fields=[] |
fieldlist=self.standardMD.fieldList |
fieldlist=self.standardMD.fieldList |
|
|
|
tags=self.findTagsFromMapping(self.contentType) |
|
self.referencetypes=tags[2] |
for referenceTypeF in self.referencetypes: |
for referenceTypeF in self.referencetypes: |
|
|
if referenceTypeF[1].title.lower() == referenceType.lower(): |
if referenceTypeF[1].title.lower() == referenceType.lower(): |
Line 1424 class ECHO_collection(Folder, Persistent
|
Line 1426 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 1738 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 1924 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 2027 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 2345 class ECHO_root(Folder,Persistent,Implic
|
|
|
meta_type="ECHO_root" |
meta_type="ECHO_root" |
|
|
def content_overview_main_t(self): |
def getContentOverviewTemplate(self): |
"""template for map overview page""" |
"""produces overview template with macro""" |
pt = zptFile(self, 'zpt/ECHO_content_overview_main') |
pt = zptObjectOrFile(self, 'content_overview_template') |
return pt |
return pt |
|
|
###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: |