version 1.32, 2004/04/05 15:38:19
|
version 1.35, 2004/04/08 08:44:47
|
Line 337 class ECHO_resource(Folder):
|
Line 337 class ECHO_resource(Folder):
|
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,viewClassification="",coords=None,credits=None,RESPONSE=None): |
"""Änderung der Properties""" |
"""Änderung der Properties""" |
|
|
|
try: |
coordsnew=[ string.split(x,",") for x in coords] |
coordsnew=[ string.split(x,",") for x in coords] |
|
except: |
|
coordsnew=[] |
|
|
setECHO_collectionInformation(self,title,label,description,contentType,responsible,credits,weight,coordsnew) |
setECHO_collectionInformation(self,title,label,description,contentType,responsible,credits,weight,coordsnew) |
|
|
Line 645 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 663 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=bgcolour |
|
|
|
|
manage_options = Folder.manage_options+( |
manage_options = Folder.manage_options+( |
Line 721 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 850 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) |
|
|
Line 865 class ECHO_root(Folder,Persistent,Implic
|
Line 876 class ECHO_root(Folder,Persistent,Implic
|
"""ECHO Root Folder""" |
"""ECHO Root Folder""" |
meta_type="ECHO_root" |
meta_type="ECHO_root" |
|
|
|
def getBgcolour(self): |
|
"""hack""" |
|
return "#dddddd" |
|
|
def contentTypeSelector_HTML(self,selected=None): |
def contentTypeSelector_HTML(self,selected=None): |
"""give type selector""" |
"""give type selector""" |