version 1.18, 2004/03/23 12:58:24
|
version 1.19, 2004/03/30 10:47:54
|
Line 259 class ECHO_resource(Folder):
|
Line 259 class ECHO_resource(Folder):
|
|
|
def ECHO_graphicEntry(self): |
def ECHO_graphicEntry(self): |
"""DO nothing""" |
"""DO nothing""" |
if 'overview' in self.aq_parent.__dict__.keys(): |
overview = self.ZopeFind(self,obj_ids=['overview']) |
|
|
|
if overview: |
pt=PageTemplateFile('Products/ECHO_content/zpt/ECHO_draw.zpt').__of__(self) |
pt=PageTemplateFile('Products/ECHO_content/zpt/ECHO_draw.zpt').__of__(self) |
return pt() |
return pt() |
else: |
else: |
Line 466 class ECHO_collection(Folder, Persistent
|
Line 468 class ECHO_collection(Folder, Persistent
|
|
|
return "Rerenderd all links to resources in: "+self.title |
return "Rerenderd all links to resources in: "+self.title |
|
|
|
security.declarePublic('ECHO_newViewerLink') |
|
|
|
|
def getCoords(self): |
def getCoords(self): |
try: |
try: |
Line 502 class ECHO_collection(Folder, Persistent
|
Line 506 class ECHO_collection(Folder, Persistent
|
|
|
) |
) |
|
|
|
def getOverview(self): |
|
"""overview graphics""" |
|
return self.ZopeFind(self,obj_ids=['overview'])[0][1] |
|
|
def ECHO_graphicEntry(self): |
def ECHO_graphicEntry(self): |
"""DO nothing""" |
"""DO nothing""" |
if 'overview' in self.aq_parent.__dict__.keys(): |
overview = self.ZopeFind(self,obj_ids=['overview']) |
|
|
|
if overview: |
pt=PageTemplateFile('Products/ECHO_content/zpt/ECHO_draw.zpt').__of__(self) |
pt=PageTemplateFile('Products/ECHO_content/zpt/ECHO_draw.zpt').__of__(self) |
return pt() |
return pt() |
else: |
else: |
Line 660 class ECHO_root(Folder,Persistent,Implic
|
Line 670 class ECHO_root(Folder,Persistent,Implic
|
"""ECHO Root Folder""" |
"""ECHO Root Folder""" |
meta_type="ECHO_root" |
meta_type="ECHO_root" |
|
|
|
def ECHO_newViewerLink(self,obj=None): |
|
"""change links (:86 faellt weg)""" |
|
|
|
if not obj: |
|
obj = self |
|
|
|
entries=obj.ZopeFind(obj,obj_metatypes=['ECHO_resource','ECHO_collection']) |
|
|
|
for entry in entries: |
|
|
|
if entry[1].meta_type == 'ECHO_resource': |
|
|
|
entry[1].link=re.sub('\:86','',entry[1].link) |
|
|
|
else: |
|
|
|
entry[1].ECHO_newViewerLink(entry[1]) |
|
|
|
return "Rerenderd all links to resources in: "+self.title |
|
|
def __init__(self,id,title): |
def __init__(self,id,title): |
"""init""" |
"""init""" |
self.id = id |
self.id = id |