version 1.67, 2004/05/07 15:59:11
|
version 1.71, 2004/05/07 17:53:37
|
Line 598 class ECHO_collection(Folder, Persistent
|
Line 598 class ECHO_collection(Folder, Persistent
|
"""ECHO Collection""" |
"""ECHO Collection""" |
security=ClassSecurityInfo() |
security=ClassSecurityInfo() |
meta_type='ECHO_collection' |
meta_type='ECHO_collection' |
|
viewClassificationList=viewClassificationListMaster |
displayTypes=displayTypes |
displayTypes=displayTypes |
|
|
|
def getViewClassification(self): |
|
if hasattr(self,'viewClassification'): |
|
return self.viewClassification |
|
else: |
|
return "" |
|
|
def getTitle(self): |
def getTitle(self): |
"""title""" |
"""title""" |
return self.title.encode('utf-8') |
return self.title.encode('utf-8') |
Line 837 class ECHO_collection(Folder, Persistent
|
Line 843 class ECHO_collection(Folder, Persistent
|
else: |
else: |
return "#dddddd" |
return "#dddddd" |
|
|
def changeECHO_collection(self,title,label,description,contentType,responsible,weight,secondaryLink,secondaryLinkTitle,credits=None,sortfield="weight",coords=None,RESPONSE=None,imageTag="",bgcolour=""): |
def changeECHO_collection(self,title,label,description,contentType,responsible,weight,secondaryLink,secondaryLinkTitle,credits=None,sortfield="weight",coords=None,RESPONSE=None,imageTag="",bgcolour="",viewClassification=None): |
"""Änderung der Properties""" |
"""Aenderung der Properties""" |
|
|
self.secondaryLink=secondaryLink |
self.secondaryLink=secondaryLink |
self.secondaryLinkTitle=secondaryLinkTitle |
self.secondaryLinkTitle=secondaryLinkTitle |
self.imageTag=imageTag |
self.imageTag=imageTag |
self.bgcolour=bgcolour |
self.bgcolour=bgcolour |
|
self.viewClassification=viewClassification |
|
|
if coords: |
if coords: |
coordsnew=[ string.split(x,",") for x in coords] |
coordsnew=[ string.split(x,",") for x in coords] |
Line 920 class ECHO_collection(Folder, Persistent
|
Line 927 class ECHO_collection(Folder, Persistent
|
|
|
def getGraphicCoords(self): |
def getGraphicCoords(self): |
"""Give list of coordinates""" |
"""Give list of coordinates""" |
subColTypes=['ECHO_collection','ECHO_externalLink','ECHO_resource'] |
subColTypes=['ECHO_collection','ECHO_resource'] |
ids=[] |
ids=[] |
for entrySearch in self.ZopeFind(self,obj_metatypes=subColTypes): |
for entrySearch in self.ZopeFind(self,obj_metatypes=subColTypes): |
object=entrySearch[1] |
object=entrySearch[1] |
Line 929 class ECHO_collection(Folder, Persistent
|
Line 936 class ECHO_collection(Folder, Persistent
|
if len(coordtemp)>3: |
if len(coordtemp)>3: |
coord=coordtemp[0:4] |
coord=coordtemp[0:4] |
label="" |
label="" |
|
vc="" |
if hasattr(object,'label') and not object.label=="": |
if hasattr(object,'label') and not object.label=="": |
label=object.label |
label=object.label |
elif hasattr(object,'title') and not object.title=="": |
elif hasattr(object,'title') and not object.title=="": |
label=object.title |
label=object.title |
else: |
else: |
label=object.getId() |
label=object.getId() |
ids.append([string.join(coord,", "),object.getId(),label,object,coordtemp,object.getViewClassification()]) |
if object.viewClassification != "": |
|
vc=object.viewClassification |
|
else: |
|
if len(coordtemp) > 4 and coordtemp[4] != "": |
|
vc="view point" |
|
else: |
|
vc="area" |
|
ids.append([string.join(coord,", "),object.getId(),label,object,coordtemp,vc]) |
return ids |
return ids |
|
|
|
|