version 1.33, 2004/04/06 15:21:33
|
version 1.34, 2004/04/07 17:27:49
|
Line 646 class ECHO_collection(Folder, Persistent
|
Line 646 class ECHO_collection(Folder, Persistent
|
|
|
return [] |
return [] |
|
|
def __init__(self,id,title,label,description,contentType,responsible,credits,weight,sortfield,coords,secondaryLinkTitle,secondaryLink,imageTag=""): |
def __init__(self,id,title,label,description,contentType,responsible,credits,weight,sortfield,coords,secondaryLinkTitle,secondaryLink,imageTag="",bgcolour=""): |
#print "CO",coords |
#print "CO",coords |
|
|
self.id = id |
self.id = id |
Line 664 class ECHO_collection(Folder, Persistent
|
Line 664 class ECHO_collection(Folder, Persistent
|
self.coords=coordsnew |
self.coords=coordsnew |
self.secondaryLinkTitle=secondaryLinkTitle |
self.secondaryLinkTitle=secondaryLinkTitle |
self.secondaryLink=secondaryLink |
self.secondaryLink=secondaryLink |
|
self.bgcolour=bgcolor |
|
|
|
|
manage_options = Folder.manage_options+( |
manage_options = Folder.manage_options+( |
Line 722 class ECHO_collection(Folder, Persistent
|
Line 723 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=""): |
def getBgcolour(self): |
|
"""colour""" |
|
if hasattr(self,'bgcolour') and not (self.bgcolour==""): |
|
return self.bgcolour |
|
else: |
|
return "#dddddd" |
|
|
|
def changeECHO_collection(self,title,label,description,contentType,responsible,weight,secondaryLink,secondaryLinkTitle,credits=None,sortfield="weight",coords=None,RESPONSE=None,imageTag="",bgcolour=""): |
"""Änderung der Properties""" |
"""Änderung der Properties""" |
|
|
self.secondaryLink=secondaryLink |
self.secondaryLink=secondaryLink |
self.secondaryLinkTitle=secondaryLinkTitle |
self.secondaryLinkTitle=secondaryLinkTitle |
self.imageTag=imageTag |
self.imageTag=imageTag |
|
self.bgcolour=bgcolour |
|
|
if coords: |
if coords: |
coordsnew=[ string.split(x,",") for x in coords] |
coordsnew=[ string.split(x,",") for x in coords] |
self.coords=coordsnew[0:] |
self.coords=coordsnew[0:] |
Line 851 def manage_addECHO_collectionForm(self):
|
Line 861 def manage_addECHO_collectionForm(self):
|
return pt() |
return pt() |
|
|
|
|
def manage_addECHO_collection(self,id,title,label,description,contentType,responsible,weight,sortfield,coords="",secondaryLinkTitle="",secondaryLink="",credits=None,RESPONSE=None,imageTag=""): |
def manage_addECHO_collection(self,id,title,label,description,contentType,responsible,weight,sortfield,coords="",secondaryLinkTitle="",secondaryLink="",credits=None,RESPONSE=None,imageTag="",bgcolour=""): |
"""add a echo collection""" |
"""add a echo collection""" |
|
|
|
|
newObj=ECHO_collection(id,title,label,description,contentType,responsible,credits,weight,sortfield,coords,secondaryLinkTitle=secondaryLinkTitle,secondaryLink=secondaryLink,imageTag=imageTag) |
newObj=ECHO_collection(id,title,label,description,contentType,responsible,credits,weight,sortfield,coords,secondaryLinkTitle=secondaryLinkTitle,secondaryLink=secondaryLink,imageTag=imageTag,bgcolour="") |
|
|
self._setObject(id,newObj) |
self._setObject(id,newObj) |
|
|