version 1.83, 2004/05/12 15:41:55
|
version 1.84, 2004/05/13 19:11:06
|
Line 21 from OFS.SimpleItem import SimpleItem
|
Line 21 from OFS.SimpleItem import SimpleItem
|
from AccessControl import ClassSecurityInfo |
from AccessControl import ClassSecurityInfo |
from Globals import InitializeClass |
from Globals import InitializeClass |
from Globals import DTMLFile |
from Globals import DTMLFile |
|
import Globals |
from Products.PageTemplates.PageTemplateFile import PageTemplateFile |
from Products.PageTemplates.PageTemplateFile import PageTemplateFile |
from Products.PageTemplates.PageTemplate import PageTemplate |
from Products.PageTemplates.PageTemplate import PageTemplate |
from Products.PageTemplates.ZopePageTemplate import ZopePageTemplate |
from Products.PageTemplates.ZopePageTemplate import ZopePageTemplate |
from Globals import Persistent, package_home |
from Globals import Persistent, package_home |
from Acquisition import Implicit |
from Acquisition import Implicit |
from ECHO_helpers import displayTypes |
from ECHO_helpers import displayTypes |
|
|
|
|
try: |
try: |
from psycopg import libpq |
from psycopg import libpq |
except: |
except: |
Line 911 def manage_addECHO_link(self,id,title,la
|
Line 914 def manage_addECHO_link(self,id,title,la
|
|
|
class ECHO_collection(Folder, Persistent, Implicit): |
class ECHO_collection(Folder, Persistent, Implicit): |
"""ECHO Collection""" |
"""ECHO Collection""" |
|
|
security=ClassSecurityInfo() |
security=ClassSecurityInfo() |
meta_type='ECHO_collection' |
meta_type='ECHO_collection' |
viewClassificationList=viewClassificationListMaster |
viewClassificationList=viewClassificationListMaster |
Line 1243 class ECHO_collection(Folder, Persistent
|
Line 1247 class ECHO_collection(Folder, Persistent
|
pt=PageTemplateFile('Products/ECHO_content/zpt/ECHO_content_overview.zpt').__of__(self) |
pt=PageTemplateFile('Products/ECHO_content/zpt/ECHO_content_overview.zpt').__of__(self) |
return pt() |
return pt() |
|
|
|
security.declareProtected('View','index_html') |
|
|
def index_html(self): |
def index_html(self): |
"""standard page""" |
"""standard page""" |
Line 1317 class ECHO_collection(Folder, Persistent
|
Line 1322 class ECHO_collection(Folder, Persistent
|
|
|
getSubCols = ECHO_helpers.getSubCols |
getSubCols = ECHO_helpers.getSubCols |
|
|
|
Globals.InitializeClass(ECHO_collection) |
|
|
|
|
def manage_addECHO_collectionForm(self): |
def manage_addECHO_collectionForm(self): |
"""Add collection form""" |
"""Add collection form""" |
Line 1339 def manage_addECHO_collection(self,id,ti
|
Line 1343 def manage_addECHO_collection(self,id,ti
|
|
|
class ECHO_group(ECHO_collection): |
class ECHO_group(ECHO_collection): |
"""ECHO Gruppe""" |
"""ECHO Gruppe""" |
|
security=ClassSecurityInfo() |
meta_type="ECHO_group" |
meta_type="ECHO_group" |
|
|
manage_options = Folder.manage_options+( |
manage_options = Folder.manage_options+( |
Line 1347 class ECHO_group(ECHO_collection):
|
Line 1352 class ECHO_group(ECHO_collection):
|
{'label':'Graphics','action':'ECHO_graphicEntry'}, |
{'label':'Graphics','action':'ECHO_graphicEntry'}, |
) |
) |
|
|
|
security.declareProtected('View','index_html') |
def index_html(self): |
def index_html(self): |
"""standard page""" |
"""standard page""" |
displayedObjects=self.ZopeFind(self,obj_metatypes=displayTypes) |
displayedObjects=self.ZopeFind(self,obj_metatypes=displayTypes) |
Line 1440 def manage_addECHO_group(self,id,title,l
|
Line 1446 def manage_addECHO_group(self,id,title,l
|
if RESPONSE is not None: |
if RESPONSE is not None: |
RESPONSE.redirect('manage_main') |
RESPONSE.redirect('manage_main') |
|
|
|
Globals.InitializeClass(ECHO_group) |
|
|
class ECHO_root(Folder,Persistent,Implicit): |
class ECHO_root(Folder,Persistent,Implicit): |
"""ECHO Root Folder""" |
"""ECHO Root Folder""" |