|
|
| version 1.9, 2004/01/21 07:40:52 | version 1.12, 2004/02/03 17:31:16 |
|---|---|
| Line 8 class ECHO_resource contains information | Line 8 class ECHO_resource contains information |
| class ECHO_externalLink contains information on externalLinks | class ECHO_externalLink contains information on externalLinks |
| """ | """ |
| import string | import string |
| import OFS.Image | import OFS.Image |
| Line 116 def setECHO_CollectionInformation(self,c | Line 115 def setECHO_CollectionInformation(self,c |
| coords=[] | coords=[] |
| #coordinates of for rectangles | #coordinates of for rectangles |
| <<<<<<< ECHO_collection.py | |
| #print "cs", coordstrs | #print "cs", coordstrs |
| if coordstrs: | if coordstrs: |
| for coordstr in coordstrs: | for coordstr in coordstrs: |
| print "cs", coordstr | #print "cs", coordstr |
| try: | try: |
| temco=coordstr.split(",") | temco=coordstr.split(",") |
| except: | except: |
| Line 128 def setECHO_CollectionInformation(self,c | Line 127 def setECHO_CollectionInformation(self,c |
| #temco.append(angle) | #temco.append(angle) |
| coords.append(temco) | coords.append(temco) |
| ======= | |
| for coordstr in coordstrs: | |
| try: | |
| temco=coordstr.split(",") | |
| except: | |
| temco=[] | |
| #temco.append(angle) | |
| coords.append(temco) | |
| >>>>>>> 1.8 | |
| self.coords=coords[0:] | self.coords=coords[0:] |
| Line 247 class ECHO_resource(Folder): | Line 238 class ECHO_resource(Folder): |
| return pt() | return pt() |
| <<<<<<< ECHO_collection.py | |
| def changeECHO_resource(self,metalink,link,context,science,practice,source_type,period,title,label,description,content_type,responsible,weight,credits=None,coords=None,viewClassification=None,RESPONSE=None): | |
| ======= | |
| def changeECHO_resource(self,metalink,link,context,science,practice,source_type,period,title,label,description,content_type,responsible,credits,weight,viewClassification="",coords="",RESPONSE=None): | def changeECHO_resource(self,metalink,link,context,science,practice,source_type,period,title,label,description,content_type,responsible,credits,weight,viewClassification="",coords="",RESPONSE=None): |
| >>>>>>> 1.8 | |
| """Änderung der Properties""" | """Änderung der Properties""" |
| Line 335 def manage_AddECHO_resourceForm(self): | Line 323 def manage_AddECHO_resourceForm(self): |
| return pt() | return pt() |
| <<<<<<< ECHO_collection.py | |
| def manage_AddECHO_resource(self,context,science,practice,source_type,period,id,title,label,description,content_type,responsible,link,metalink,credits,weight,coords=None,RESPONSE=None): | def manage_AddECHO_resource(self,context,science,practice,source_type,period,id,title,label,description,content_type,responsible,link,metalink,credits,weight,coords=None,RESPONSE=None): |
| ======= | |
| def manage_AddECHO_resource(self,context,science,practice,source_type,period,id,title,label,description,content_type,responsible,link,metalink,credits,weight,coords=[],RESPONSE=None): | |
| >>>>>>> 1.8 | |
| """nothing yet""" | """nothing yet""" |
| scientificClassificationObj=scientificClassification(context,science,practice) | scientificClassificationObj=scientificClassification(context,science,practice) |
| Line 386 class ECHO_externalLink(Folder): | Line 372 class ECHO_externalLink(Folder): |
| if not hasattr(self,'coords'): | if not hasattr(self,'coords'): |
| self.coords=[''] | self.coords=[''] |
| print "G",self.coords | #print "G",self.coords |
| pt=PageTemplateFile('Products/ECHO_content/ChangeECHO_externalLink.zpt').__of__(self) | pt=PageTemplateFile('Products/ECHO_content/ChangeECHO_externalLink.zpt').__of__(self) |
| return pt() | return pt() |
| Line 497 class ECHO_collection(Folder, Persistent | Line 483 class ECHO_collection(Folder, Persistent |
| def getCoords(self): | def getCoords(self): |
| try: | try: |
| return [string.join(x,",") for x in self.coords] | |
| x= [string.join(x,",") for x in self.coords] | |
| return x | |
| except: | except: |
| return [] | return [] |
| def __init__(self,id,title,label,description,content_type,responsible,credits,weight,sortfield,coords): | def __init__(self,id,title,label,description,content_type,responsible,credits,weight,sortfield,coords): |
| Line 567 class ECHO_collection(Folder, Persistent | Line 555 class ECHO_collection(Folder, Persistent |
| security.declarePublic('changeECHO_Collection') | security.declarePublic('changeECHO_Collection') |
| <<<<<<< ECHO_collection.py | |
| def changeECHO_Collection(self,context,science,practice,source_type,period,id,title,label,description,content_type,responsible,credits,weight,coords=[""],sortfield="weight",RESPONSE=None): | def changeECHO_Collection(self,context,science,practice,source_type,period,id,title,label,description,content_type,responsible,weight,credits="",sortfield="weight",coords="",RESPONSE=None): |
| ======= | |
| def changeECHO_Collection(self,context,science,practice,source_type,period,id,title,label,description,content_type,responsible,credits,weight,sortfield="weight",coords="",RESPONSE=None): | |
| >>>>>>> 1.8 | |
| """Änderung der Properties""" | """Änderung der Properties""" |
| #print "HI",coords | #print "HI",coords |
| Line 604 class ECHO_collection(Folder, Persistent | Line 590 class ECHO_collection(Folder, Persistent |
| pt.content_type="text/html" | pt.content_type="text/html" |
| return pt() | return pt() |
| def getCredits(self): | |
| """Ausgabe der credits""" | |
| if self.credits: | |
| return self.credits | |
| else: | |
| return [] | |
| def getGraphicCoords(self): | def getGraphicCoords(self): |
| """Give list of coordinates""" | """Give list of coordinates""" |
| Line 717 class ECHO_root(Folder,Persistent,Implic | Line 709 class ECHO_root(Folder,Persistent,Implic |
| except: | except: |
| """nothing""" | """nothing""" |
| return ids | return ids |
| def getCollectionTree(self): | def getCollectionTree(self): |