version 1.38, 2004/04/14 23:44:52
|
version 1.41, 2004/04/16 09:45:32
|
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 195 class ECHO_layoutTemplate(ZopePageTempla
|
Line 196 class ECHO_layoutTemplate(ZopePageTempla
|
|
|
meta_type="ECHO_layoutTemplate" |
meta_type="ECHO_layoutTemplate" |
|
|
#manage_options=ZopePageTemplate.manage_options+( |
|
# {'label':'Set back to Standard','action':'changeECHO_layoutTemplateToStandardForm'}, |
|
# ) |
|
|
|
|
|
def __init__(self, id, text=None, content_type=None,EchoType=None): |
def __init__(self, id, text=None, content_type=None,EchoType=None): |
self.id = str(id) |
self.id = str(id) |
|
|
Line 212 class ECHO_layoutTemplate(ZopePageTempla
|
Line 208 class ECHO_layoutTemplate(ZopePageTempla
|
text = open(self._default_content_fn).read() |
text = open(self._default_content_fn).read() |
self.pt_edit(text, content_type) |
self.pt_edit(text, content_type) |
|
|
## def changeECHO_layoutTemplateToStandardForm(self): |
|
## """change form""" |
|
## pt=PageTemplateFile('Products/ECHO_content/zpt/changeECHO_pageTemplateWeightForm.zpt').__of__(self) |
|
## return pt() |
|
|
|
|
|
"""change form""" |
"""change form""" |
|
|
Line 274 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 570 class ECHO_collection(Folder, Persistent
|
Line 563 class ECHO_collection(Folder, Persistent
|
for entry in object.__dict__.keys(): |
for entry in object.__dict__.keys(): |
element=getattr(object,entry) |
element=getattr(object,entry) |
try: |
try: |
if element.meta_type=="ECHO_collection": |
if element.meta_type in ["ECHO_collection","ECHO_group"]: |
collections+="<element name=\""+element.title+"\" url=\""+element.absolute_url()+"\">" |
collections+="<element name=\""+element.title+"\" url=\""+element.absolute_url()+"\">" |
collections+=getCollection(element,depth)+"</element>\n" |
collections+=getCollection(element,depth)+"</element>\n" |
except: |
except: |
Line 822 class ECHO_collection(Folder, Persistent
|
Line 815 class ECHO_collection(Folder, Persistent
|
|
|
return ids |
return ids |
|
|
|
<<<<<<< ECHO_collection.py |
|
getSubCols = ECHO_helpers.getSubCols |
|
======= |
def getSubCols(self,sortfield="weight"): |
def getSubCols(self,sortfield="weight"): |
|
|
subColTypes=['ECHO_collection','ECHO_externalLink','ECHO_resource'] |
subColTypes=['ECHO_group','ECHO_collection','ECHO_externalLink','ECHO_resource'] |
ids=[] |
ids=[] |
for entry in self.__dict__.keys(): |
for entry in self.__dict__.keys(): |
object=getattr(self,entry) |
object=getattr(self,entry) |
Line 856 class ECHO_collection(Folder, Persistent
|
Line 852 class ECHO_collection(Folder, Persistent
|
|
|
|
|
|
|
|
|
|
|
def manage_addECHO_collectionForm(self): |
def manage_addECHO_collectionForm(self): |
"""Add collection form""" |
"""Add collection form""" |
pt=PageTemplateFile('Products/ECHO_content/zpt/AddECHO_collectionForm.zpt').__of__(self) |
pt=PageTemplateFile('Products/ECHO_content/zpt/AddECHO_collectionForm.zpt').__of__(self) |
Line 923 class ECHO_group(ECHO_collection):
|
Line 917 class ECHO_group(ECHO_collection):
|
if RESPONSE is not None: |
if RESPONSE is not None: |
RESPONSE.redirect('manage_main') |
RESPONSE.redirect('manage_main') |
|
|
|
def getLogo(self): |
|
"""logo ausgeben""" |
|
return "ECHO_groups" |
|
|
def content_html(self): |
def content_html(self): |
"""template fuer content""" |
"""template fuer content""" |
return content_html(self,'group') |
return content_html(self,'group') |