Back to index

plone3  3.1.7
config.py
Go to the documentation of this file.
00001 from Products.PortalTransforms.libtransforms import utils as transform_utils
00002 
00003 PKG_NAME = "Archetypes"
00004 SKIN_NAME = "archetypes"
00005 TOOL_NAME = "archetype_tool" ## Name the tool will be installed under
00006 
00007 UID_CATALOG = "uid_catalog"
00008 
00009 REGISTER_DEMO_TYPES = True ##Initialize the demo types
00010 DEBUG =  False ## Hide debug messages
00011 #DEBUG = True  ## See debug messages
00012 
00013 RENAME_AFTER_CREATION_ATTEMPTS = 100 
00014 ## Try up to -100 at the end of the id when doing title-to-id renaming
00015 
00016 
00017 ##Reference Engine bits
00018 REFERENCE_CATALOG = "reference_catalog"
00019 UUID_ATTR = "_at_uid"
00020 REFERENCE_ANNOTATION = "at_references"
00021 
00022 ## In zope 2.6.3+ and 2.7.0b4+ a lines field returns a tuple not a list. Per
00023 ## default archetypes returns a tuple, too. If this breaks your software you
00024 ## can disable the change.
00025 ## See http://zope.org/Collectors/Zope/924
00026 ZOPE_LINES_IS_TUPLE_TYPE = True
00027 
00028 ## MYSQL SQLStorage Table Type
00029 ## To use connections with ACID transactions you should define it as
00030 ## INNODB. The MySQL default table type is MyISAM.
00031 MYSQL_SQLSTORAGE_TABLE_TYPE = 'INNODB'
00032 
00033 ## Debug security settings of Fields, Widgets and Storages?
00034 DEBUG_SECURITY=False
00035 #DEBUG_SECURITY=True
00036 
00037 ## If you have graphviz http://www.research.att.com/sw/tools/graphviz/
00038 ## and its frontend "dot" installed on your system set this to True
00039 ## You need dot version > 1.10 with cmapx support.
00040 try:
00041     GRAPHVIZ_BINARY = transform_utils.bin_search('dot')
00042 except transform_utils.MissingBinary:
00043     # graphviz not found
00044     GRAPHVIZ_BINARY = None
00045     HAS_GRAPHVIZ = False
00046 else:
00047     HAS_GRAPHVIZ = True
00048 
00049 ## comment out the following line to enable the reference graph tool
00050 HAS_GRAPHVIZ = False
00051 
00052 ## protect attributes of AttributeStorage from unallowed access?
00053 ATTRIBUTE_SECURITY = True
00054 
00055 ## set language default for metadata, it will be overwritten by portal-settings!
00056 LANGUAGE_DEFAULT=u''
00057 
00058 ## Archetypes before 1.4 managed the catalog map using meta types instead of
00059 ## portal types. If you need this old behaviour change this setting to False.
00060 CATALOGMAP_USES_PORTALTYPE = True