Back to index

plone3  3.1.7
__init__.py
Go to the documentation of this file.
00001 ##############################################################################
00002 #
00003 # Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
00004 #
00005 # This software is subject to the provisions of the Zope Public License,
00006 # Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
00007 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
00008 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
00009 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
00010 # FOR A PARTICULAR PURPOSE.
00011 #
00012 ##############################################################################
00013 """ Topic: Canned catalog queries
00014 
00015 $Id: __init__.py 72873 2007-02-27 13:13:44Z yuppie $
00016 """
00017 
00018 from Products.CMFCore.utils import ContentInit
00019 
00020 import Topic
00021 from permissions import AddTopics
00022 
00023 
00024 # Make sure security is initialized
00025 import DateCriteria
00026 import ListCriterion
00027 import SimpleIntCriterion
00028 import SimpleStringCriterion
00029 import SortCriterion
00030 
00031 def initialize(context):
00032 
00033     context.registerHelpTitle( 'CMF Topic Help' )
00034     context.registerHelp( directory='help' )
00035 
00036     # BBB: register oldstyle constructors
00037     ContentInit( 'CMF Topic Content'
00038                , content_types=()
00039                , permission=AddTopics
00040                , extra_constructors=(Topic.addTopic,)
00041                ).initialize( context )