version 1.22, 2004/03/30 18:10:00
|
version 1.23, 2004/03/30 19:12:22
|
Line 30 import xml.dom.minidom
|
Line 30 import xml.dom.minidom
|
|
|
import urllib |
import urllib |
import xml.dom.minidom |
import xml.dom.minidom |
|
from ECHO_graphicalOverview import javaHandler,javaScriptMain |
|
|
#List of different types for the graphical linking viewer |
#List of different types for the graphical linking viewer |
viewClassificationListMaster=['view point','area'] |
viewClassificationListMaster=['view point','area'] |
Line 426 class ECHO_collection(Folder, Persistent
|
Line 426 class ECHO_collection(Folder, Persistent
|
security=ClassSecurityInfo() |
security=ClassSecurityInfo() |
meta_type='ECHO_collection' |
meta_type='ECHO_collection' |
|
|
|
def createJavaScript(self): |
|
"""CreateJava""" |
|
ret=javaScriptMain |
|
|
|
dynamical="" |
|
for ob in self.getGraphicCoords(): |
|
dynamical+="""Coords.push(new Coord('%s', Img, %s));\n"""%(ob[1],ob[0]) |
|
ret+=javaHandler%dynamical |
|
return ret |
|
|
security.declarePublic('getCreditObject') |
security.declarePublic('getCreditObject') |
def getCreditObject(self,name): |
def getCreditObject(self,name): |
Line 577 class ECHO_collection(Folder, Persistent
|
Line 585 class ECHO_collection(Folder, Persistent
|
|
|
security.declarePublic('index_html') |
security.declarePublic('index_html') |
|
|
showOverview=DTMLFile('dtml/ECHO_content_overview',globals()) |
|
|
def showOverview(self): |
|
"""overview""" |
|
if 'ECHO_overview.html' in self.__dict__.keys(): |
|
return getattr(self,'ECHO_overview.html')() |
|
pt=PageTemplateFile('Products/ECHO_content/zpt/ECHO_content_overview.zpt').__of__(self) |
|
return pt() |
|
|
|
|
def index_html(self): |
def index_html(self): |
Line 600 class ECHO_collection(Folder, Persistent
|
Line 614 class ECHO_collection(Folder, Persistent
|
else: |
else: |
return [] |
return [] |
|
|
|
|
|
|
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_externalLink','ECHO_resource'] |
Line 611 class ECHO_collection(Folder, Persistent
|
Line 627 class ECHO_collection(Folder, Persistent
|
for coordtemp in object.coords: |
for coordtemp in object.coords: |
if len(coordtemp)>3: |
if len(coordtemp)>3: |
coord=coordtemp[0:4] |
coord=coordtemp[0:4] |
if hasattr(object,'title'): |
if hasattr(object,'label') and not object.label=="": |
|
ids.append([string.join(coord,", "),object.getId(),object.label,object]) |
|
elif hasattr(object,'title'): |
if not object.title=="": |
if not object.title=="": |
ids.append([string.join(coord,", "),object.getId(),object.title]) |
ids.append([string.join(coord,", "),object.getId(),object.title,object]) |
else: |
else: |
ids.append([string.join(coord,", "),object.getId(),object.getId()]) |
ids.append([string.join(coord,", "),object.getId(),object.getId(),object]) |
else: |
else: |
ids.append([string.join(coord,", "),object.getId(),object.getId()]) |
ids.append([string.join(coord,", "),object.getId(),object.getId(),object]) |
|
|
except: |
except: |
"""nothing""" |
"""nothing""" |
Line 681 class ECHO_root(Folder,Persistent,Implic
|
Line 699 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): |
def ECHO_newViewerLink(self,obj=None): |
"""change links (:86 faellt weg)""" |
"""change links (:86 faellt weg)""" |
|
|