Back to index

plone3  3.1.7
config.py
Go to the documentation of this file.
00001 HAS_ZOPE = False
00002 
00003 try:
00004     import Zope2 # > 2.8
00005     HAS_ZOPE = True
00006 except ImportError:
00007     try:
00008         import Zope as Zope2 # < 2.8
00009         HAS_ZOPE = True
00010     except ImportError:
00011         # HAS_ZOPE is set to False by default
00012         pass
00013 
00014 if HAS_ZOPE:
00015     from ZService import ZService as Service
00016 else:
00017     # stand alone validator
00018     from service import Service
00019 
00020 from validators import initialize
00021 
00022 validation = Service()
00023 
00024 initialize(validation)