Back to index

plone3  3.1.7
config.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: config.py 8286 2007-08-06 21:32:39Z smcmahon $
00020 """
00021 import os
00022 import logging
00023 from Globals import package_home
00024 
00025 try:
00026     import libxml2
00027 except ImportError:
00028     hasLibxml2 = False
00029     logger = logging.getLogger('Marshall')
00030     logger.log(logging.INFO, \
00031        'libxml2-python not available.' \
00032        ' Unable to register libxml2 based marshallers.')
00033 else:
00034     hasLibxml2 = True
00035 
00036 PACKAGE_HOME = package_home(globals())
00037 HANDLE_REFS = False
00038 
00039 TOOL_ID = 'marshaller_registry'
00040 AT_NS = 'http://plone.org/ns/archetypes/'
00041 CMF_NS = 'http://cmf.zope.org/namespaces/default/'
00042 DC_NS = "http://purl.org/dc/elements/1.1/"
00043 ADOBE_NS = "adobe:ns:meta"
00044 
00045 ATXML_SCHEMA = os.path.join(PACKAGE_HOME, 'validation', 'atxml')