Back to index

plone3  3.1.7
__init__.py
Go to the documentation of this file.
00001 # Copyright (c) 2005-2007
00002 # Authors: KSS Project Contributors (see docs/CREDITS.txt)
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 version 2 as published
00006 # by the Free Software Foundation.
00007 #
00008 # This program is distributed in the hope that it will be useful,
00009 # but WITHOUT ANY WARRANTY; without even the implied warranty of
00010 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00011 # GNU General Public License for more details.
00012 #
00013 # You should have received a copy of the GNU General Public License
00014 # along with this program; if not, write to the Free Software
00015 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
00016 # 02111-1307, USA.
00017 
00018 __all__ = ('force_unicode', 'KSSUnicodeError', 
00019            'KSSExplicitError', 'kssaction', 'KSSView',
00020            'CommandSet', 'ICommandSet',
00021 #BBB
00022            'AzaxBaseView', 'KssExplicitError', 
00023         ) 
00024 
00025 import mimetypes
00026 
00027 mimetypes.types_map['.kkt'] = 'text/xml'    # BBB legacy!
00028 mimetypes.types_map['.kukit'] = 'text/xml'
00029 
00030 from kss.core.kssview import KSSView, CommandSet
00031 from kss.core.actionwrapper import KSSExplicitError, kssaction 
00032 from kss.core.unicode_quirks import force_unicode, KSSUnicodeError
00033 from kss.core.interfaces import ICommandSet
00034 
00035 # BBB
00036 from kss.core.kssview import AzaxBaseView
00037 from kss.core.actionwrapper import KssExplicitError
00038 import sys, kssview
00039 sys.modules['kss.core.azaxview'] = kssview
00040 
00041 try:
00042     import Products.Five
00043 except ImportError:
00044     pass
00045 else:
00046     # Allow API to build commands from restricted code
00047     from AccessControl import allow_module
00048     allow_module('kss.core.ttwapi')
00049