from Products.GenericSetup import profile_registry import Topic import SimpleStringCriterion import SimpleIntCriterion import ListCriterion import DateCriteria import SortCriterion from permissions import AddTopics bases = (Topic.Topic, ) this_module = sys.modules[__name__] for base in bases: createZClassForBase(base, this_module) # This is used by a script (external method) that can be run # to set up Topics in an existing CMF Site instance. topic_globals = globals() # Make the skins available as DirectoryViews registerDirectory('skins', globals()) def initialize(context): context.registerHelpTitle('CMF Topic Help') context.registerHelp(directory='help') # CMF Initializers
import ZCatalog, CatalogAwareness, CatalogPathAwareness from Products.PluginIndexes.TextIndex import Vocabulary # BBB: ZClasses are deprecated but we don't want the warning to appear here import warnings warnings.filterwarnings('ignore', message='^ZClasses', append=1) try: from ZClasses import createZClassForBase finally: del warnings.filters[-1] try: del __warningregistry__ except NameError: pass createZClassForBase(ZCatalog.ZCatalog, globals(), 'ZCatalogBase', 'ZCatalog') createZClassForBase(CatalogAwareness.CatalogAware, globals(), 'CatalogAwareBase', 'CatalogAware') createZClassForBase(CatalogPathAwareness.CatalogPathAware, globals(), 'CatalogPathAwareBase', 'CatalogPathAware') def initialize(context): context.registerClass( ZCatalog.ZCatalog, permission='Add ZCatalogs', constructors=(ZCatalog.manage_addZCatalogForm, ZCatalog.manage_addZCatalog), icon='www/ZCatalog.gif', )
import SortCriterion import Products.CMFCore from ZClasses import createZClassForBase from Products.CMFCore import utils from Products.CMFCore.DirectoryView import registerDirectory import TopicPermissions bases = (Topic.Topic,) import sys this_module = sys.modules[ __name__ ] for base in bases: createZClassForBase( base, this_module ) # This is used by a script (external method) that can be run # to set up Topics in an existing CMF Site instance. topic_globals=globals() # Make the skins available as DirectoryViews registerDirectory('skins', globals()) registerDirectory('skins/topic', globals()) def initialize( context ): context.registerHelpTitle('CMF Topic Help') context.registerHelp(directory='help') # CMF Initializers utils.ContentInit(
# This software is subject to the provisions of the Zope Public License, # Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS # FOR A PARTICULAR PURPOSE # ############################################################################## """ZCatalog product""" import ZCatalog, Catalog, CatalogAwareness, CatalogPathAwareness, ZClasses from Products.PluginIndexes.TextIndex import Vocabulary from ZClasses import createZClassForBase createZClassForBase( ZCatalog.ZCatalog , globals() , 'ZCatalogBase', 'ZCatalog' ) createZClassForBase( CatalogAwareness.CatalogAware, globals() , 'CatalogAwareBase', 'CatalogAware' ) createZClassForBase( CatalogPathAwareness.CatalogPathAware, globals() , 'CatalogPathAwareBase', 'CatalogPathAware' ) def initialize(context): context.registerClass( ZCatalog.ZCatalog, permission='Add ZCatalogs', constructors=(ZCatalog.manage_addZCatalogForm, ZCatalog.manage_addZCatalog), icon='www/ZCatalog.gif', ) context.registerClass(
############################################################################## __doc__ = '''Object system core $Id$''' __version__ = '$Revision: 1.38 $'[11:-2] import Version, OFS.Image, OFS.Folder, AccessControl.User import OFS.DTMLMethod, OFS.DTMLDocument, OFS.PropertySheets import OFS.OrderedFolder import ZClasses.ObjectManager from AccessControl.Permissions import add_documents_images_and_files from AccessControl.Permissions import add_folders from ZClasses import createZClassForBase from App.ImageFile import ImageFile createZClassForBase(OFS.DTMLMethod.DTMLMethod, globals(), 'ZDTMLMethod', 'DTML Method') createZClassForBase(OFS.DTMLDocument.DTMLDocument, globals(), 'ZDTMLDocument', 'DTML Document') createZClassForBase(OFS.Image.Image, globals(), 'ZImage', 'Image') createZClassForBase(OFS.Image.File, globals(), 'ZFile', 'File') createZClassForBase(OFS.Folder.Folder, globals(), 'ZFolder', 'Folder') createZClassForBase(OFS.OrderedFolder.OrderedFolder, globals()) createZClassForBase(AccessControl.User.UserFolder, globals(), 'ZUserFolder', 'User Folder') createZClassForBase(AccessControl.User.User, globals(), 'ZUser', 'User') misc_ = {'version.gif': ImageFile('images/version.gif', globals())} # This is the new way to initialize products. It is hoped # that this more direct mechanism will be more understandable.
############################################################################## __doc__='''Object system core $Id: __init__.py 40222 2005-11-18 15:46:28Z andreasjung $''' __version__='$Revision: 1.38 $'[11:-2] import Version, OFS.Image, OFS.Folder, AccessControl.User import OFS.DTMLMethod, OFS.DTMLDocument, OFS.PropertySheets import OFS.OrderedFolder import ZClasses.ObjectManager from AccessControl.Permissions import add_documents_images_and_files from AccessControl.Permissions import add_folders from ZClasses import createZClassForBase from App.ImageFile import ImageFile createZClassForBase( OFS.DTMLMethod.DTMLMethod, globals() , 'ZDTMLMethod', 'DTML Method' ) createZClassForBase( OFS.DTMLDocument.DTMLDocument, globals() , 'ZDTMLDocument', 'DTML Document' ) createZClassForBase( OFS.Image.Image, globals() , 'ZImage', 'Image' ) createZClassForBase( OFS.Image.File, globals() , 'ZFile', 'File' ) createZClassForBase( OFS.Folder.Folder, globals() , 'ZFolder', 'Folder' ) createZClassForBase( OFS.OrderedFolder.OrderedFolder, globals() ) createZClassForBase( AccessControl.User.UserFolder, globals() , 'ZUserFolder', 'User Folder' ) createZClassForBase( AccessControl.User.User, globals() , 'ZUser', 'User' ) misc_={