--- ECHO_content/ECHO_collection.py 2004/03/30 12:44:57 1.20 +++ ECHO_content/ECHO_collection.py 2004/03/30 15:30:58 1.21 @@ -231,19 +231,21 @@ class ECHO_resource(Folder): if not hasattr(self,'coords'): self.coords=[] + print "vorher",self.coords pt=PageTemplateFile('Products/ECHO_content/zpt/ChangeECHO_resource.zpt').__of__(self) return pt() def changeECHO_resource(self,metalink,link,title,label,description,content_type,responsible,weight,viewClassification="",coords=None,credits=None,RESPONSE=None): - - """Änderung der Properties""" - - setECHO_collectionInformation(self,title,label,description,content_type,responsible,credits,weight,coords,viewClassification) - + coordsnew=[ string.split(x,",") for x in coords] + + + setECHO_collectionInformation(self,title,label,description,content_type,responsible,credits,weight,coordsnew) + + self.coords=coordsnew[0:] self.link=link self.metalink=metalink @@ -376,11 +378,11 @@ class ECHO_externalLink(Folder): def changeECHO_externalLink(self,link,title,label,description,content_type,responsible,weight,coords=None,credits=None,RESPONSE=None): """Änderung der Properties""" - + coordsnew=[ string.split(x,",") for x in coords] setECHO_collectionInformation(self,title,label,description,content_type,responsible,credits,weight,coords) - + self.coords=coordsnew[0:] self.link=link if RESPONSE is not None: RESPONSE.redirect('manage_main') @@ -562,10 +564,12 @@ class ECHO_collection(Folder, Persistent def changeECHO_collection(self,title,label,description,content_type,responsible,weight,credits=None,sortfield="weight",coords=None,RESPONSE=None): """Änderung der Properties""" + coordsnew=[ string.split(x,",") for x in coords] setECHO_collectionInformation(self,title,label,description,content_type,responsible,credits,weight,coordsnew) - + + self.coords=coordsnew[0:] self.sortfield=sortfield if RESPONSE is not None: