--- ECHO_content/ECHO_collection.py 2004/05/07 16:52:04 1.69 +++ ECHO_content/ECHO_collection.py 2004/05/07 17:53:37 1.71 @@ -844,7 +844,7 @@ class ECHO_collection(Folder, Persistent return "#dddddd" def changeECHO_collection(self,title,label,description,contentType,responsible,weight,secondaryLink,secondaryLinkTitle,credits=None,sortfield="weight",coords=None,RESPONSE=None,imageTag="",bgcolour="",viewClassification=None): - """Änderung der Properties""" + """Aenderung der Properties""" self.secondaryLink=secondaryLink self.secondaryLinkTitle=secondaryLinkTitle @@ -936,13 +936,21 @@ class ECHO_collection(Folder, Persistent if len(coordtemp)>3: coord=coordtemp[0:4] label="" + vc="" if hasattr(object,'label') and not object.label=="": label=object.label elif hasattr(object,'title') and not object.title=="": label=object.title else: label=object.getId() - ids.append([string.join(coord,", "),object.getId(),label,object,coordtemp,object.viewClassification]) + if object.viewClassification != "": + vc=object.viewClassification + else: + if len(coordtemp) > 4 and coordtemp[4] != "": + vc="view point" + else: + vc="area" + ids.append([string.join(coord,", "),object.getId(),label,object,coordtemp,vc]) return ids