Back to index

plone3  3.1.7
__init__.py
Go to the documentation of this file.
00001 # Marshall: A framework for pluggable marshalling policies
00002 # Copyright (C) 2004-2006 Enfold Systems, LLC
00003 #
00004 # This program is free software; you can redistribute it and/or modify
00005 # it under the terms of the GNU General Public License as published by
00006 # the Free Software Foundation; either version 2 of the License, or
00007 # (at your option) any later version.
00008 #
00009 # This program is distributed in the hope that it will be useful,
00010 # but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012 # GNU General Public License for more details.
00013 #
00014 # You should have received a copy of the GNU General Public License
00015 # along with this program; if not, write to the Free Software
00016 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00017 #
00018 """
00019 $Id: __init__.py 6810 2006-08-27 14:11:30Z hannosch $
00020 """
00021 
00022 import config
00023 
00024 # Kick off Extensions.Install import
00025 from Products.Marshall.Extensions import Install
00026 del Install
00027 
00028 # Kick off handler registration
00029 from Products.Marshall import handlers
00030 
00031 if config.hasLibxml2:
00032     # Kick off namespace registration
00033     from Products.Marshall import namespaces
00034 
00035 from Products.Marshall.marshaller import ControlledMarshaller
00036 
00037 def initialize(context):
00038     from Products.Marshall import registry
00039     from Products.Marshall import predicates
00040 
00041     context.registerClass(
00042         registry.Registry,
00043         permission='Add Marshaller Registry',
00044         constructors=(registry.manage_addRegistry,),
00045         icon='www/registry.png',
00046         )
00047 
00048     context.registerClass(
00049         instance_class=predicates.Predicate,
00050         permission='Add Marshaller Predicate',
00051         constructors=predicates.constructors,
00052         icon='www/registry.png')