version 1.40, 2004/04/15 13:41:01
|
version 1.42, 2004/04/16 10:12:15
|
Line 34 import xml.dom.minidom
|
Line 34 import xml.dom.minidom
|
import urllib |
import urllib |
import xml.dom.minidom |
import xml.dom.minidom |
from ECHO_graphicalOverview import javaHandler,javaScriptMain |
from ECHO_graphicalOverview import javaHandler,javaScriptMain |
|
import ECHO_helpers |
|
|
#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 264 class ECHO_resource(Folder):
|
Line 265 class ECHO_resource(Folder):
|
|
|
viewClassificationList=viewClassificationListMaster |
viewClassificationList=viewClassificationListMaster |
|
|
|
getSubCols = ECHO_helpers.getSubCols |
|
|
def content_html(self): |
def content_html(self): |
"""template fuer content""" |
"""template fuer content""" |
return content_html(self,'resource') |
return content_html(self,'resource') |
Line 740 class ECHO_collection(Folder, Persistent
|
Line 743 class ECHO_collection(Folder, Persistent
|
|
|
setECHO_collectionInformation(self,title,label,description,contentType,responsible,credits,weight,coordsnew) |
setECHO_collectionInformation(self,title,label,description,contentType,responsible,credits,weight,coordsnew) |
|
|
|
self.coords=coordsnew[0:] # HACK fehler in setECHO_collection |
|
|
self.sortfield=sortfield |
self.sortfield=sortfield |
|
|
Line 812 class ECHO_collection(Folder, Persistent
|
Line 815 class ECHO_collection(Folder, Persistent
|
|
|
return ids |
return ids |
|
|
def getSubCols(self,sortfield="weight"): |
|
|
|
subColTypes=['ECHO_group','ECHO_collection','ECHO_externalLink','ECHO_resource'] |
|
ids=[] |
|
for entry in self.__dict__.keys(): |
|
object=getattr(self,entry) |
|
try: |
|
if object.meta_type in subColTypes: |
|
ids.append(object) |
|
|
|
except: |
|
"""nothing""" |
|
try: |
|
sortfield=self.sortfield |
|
except: |
|
"""nothing""" |
|
|
|
tmplist=[] |
|
for x in ids: |
|
if hasattr(x,sortfield): |
|
try: |
|
x=int(x) |
|
except: |
|
"""nothing""" |
|
tmp=getattr(x,sortfield) |
|
else: |
|
tmp=10000000 |
|
tmplist.append((tmp,x)) |
|
tmplist.sort() |
|
return [x for (key,x) in tmplist] |
|
|
|
|
|
|
getSubCols = ECHO_helpers.getSubCols |
|
|
|
|
|
|