version 1.24, 2004/04/02 07:56:26
|
version 1.25, 2004/04/02 15:06:47
|
Line 427 class ECHO_collection(Folder, Persistent
|
Line 427 class ECHO_collection(Folder, Persistent
|
security=ClassSecurityInfo() |
security=ClassSecurityInfo() |
meta_type='ECHO_collection' |
meta_type='ECHO_collection' |
|
|
|
def getImageTag(self): |
|
"""GetTag""" |
|
try: |
|
return self.imageTag |
|
except: |
|
return "" |
|
|
def addResource(self,id,title,label,description,content_type,responsible,link,metalink,weight,credits=None,coords=None,RESPONSE=None): |
def addResource(self,id,title,label,description,content_type,responsible,link,metalink,weight,credits=None,coords=None,RESPONSE=None): |
"""SSS""" |
"""SSS""" |
try: |
try: |
Line 523 class ECHO_collection(Folder, Persistent
|
Line 530 class ECHO_collection(Folder, Persistent
|
|
|
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,imageTag=""): |
#print "CO",coords |
#print "CO",coords |
|
|
self.id = id |
self.id = id |
Line 534 class ECHO_collection(Folder, Persistent
|
Line 541 class ECHO_collection(Folder, Persistent
|
self.description=description |
self.description=description |
self.content_type=content_type |
self.content_type=content_type |
self.responsible=responsible |
self.responsible=responsible |
|
self.imageTag=imageTag |
self.weight=weight |
self.weight=weight |
self.sortfield=sortfield |
self.sortfield=sortfield |
coordsnew=[ string.split(x,",") for x in coords] |
coordsnew=[ string.split(x,",") for x in coords] |
Line 597 class ECHO_collection(Folder, Persistent
|
Line 604 class ECHO_collection(Folder, Persistent
|
security.declarePublic('changeECHO_collection') |
security.declarePublic('changeECHO_collection') |
|
|
|
|
def changeECHO_collection(self,title,label,description,content_type,responsible,weight,credits=None,sortfield="weight",coords=None,RESPONSE=None): |
def changeECHO_collection(self,title,label,description,content_type,responsible,weight,credits=None,sortfield="weight",coords=None,RESPONSE=None,imageTag=""): |
"""Änderung der Properties""" |
"""Änderung der Properties""" |
|
|
|
self.imageTag=imageTag |
coordsnew=[ string.split(x,",") for x in coords] |
coordsnew=[ string.split(x,",") for x in coords] |
|
|
setECHO_collectionInformation(self,title,label,description,content_type,responsible,credits,weight,coordsnew) |
setECHO_collectionInformation(self,title,label,description,content_type,responsible,credits,weight,coordsnew) |
Line 712 def manage_addECHO_collectionForm(self):
|
Line 719 def manage_addECHO_collectionForm(self):
|
return pt() |
return pt() |
|
|
|
|
def manage_addECHO_collection(self,id,title,label,description,content_type,responsible,weight,sortfield,coords="",credits=None,RESPONSE=None): |
def manage_addECHO_collection(self,id,title,label,description,content_type,responsible,weight,sortfield,coords="",credits=None,RESPONSE=None,imageTag=""): |
"""add a echo collection""" |
"""add a echo collection""" |
|
|
|
|
newObj=ECHO_collection(id,title,label,description,content_type,responsible,credits,weight,sortfield,coords) |
newObj=ECHO_collection(id,title,label,description,content_type,responsible,credits,weight,sortfield,coords,imageTag) |
|
|
self._setObject(id,newObj) |
self._setObject(id,newObj) |
|
|