source: products/qPloneSkinDump/trunk/config.py @ 1591

Last change on this file since 1591 was 74, checked in by chervol, 18 years ago

initial plone2.0.5 branch import

File size: 1.7 KB
Line 
1import re, os
2try:
3    from Products.CMFCore import permissions
4except:
5    from Products.CMFCore import CMFCorePermissions as permissions
6
7## Base Product Constants
8GLOBALS = globals()
9PROJECTNAME = "qPloneSkinDump"
10ADD_CONTENT_PERMISSION = permissions.AddPortalContent
11CONFIGURATION_CONFIGLET = "qploneskindump_configuration"
12
13
14## Constants for Scin Product generation
15TEMPLATE_PATH = "skin_template"
16
17
18## Constants for slots castomization
19SLOT_FORMING_LIST = ["blend_with_skin", "blend_with_site", "replace"]
20DEFAULT_SLOT_FORMING = "blend_with_skin"
21MAIN_COLUMN_LIST = ["left", "right", "both"]
22DEFAULT_MAIN_COLUMN = "both"
23
24
25## Constants for Exporting objects
26IMPORTING_POLICY_LIST = ["only_new","backup","overwrite"]
27DEFAULT_IMPORTING_POLICY = "only_new"
28FORBIDDEN_EXP_PREFIXES = re.compile('^(portal_)')
29FORBIDDEN_EXP_NAMES = ["ResourceRegistryCache", "MailHost", "HTTPCache", "Members", "RAMCache", "acl_users",\
30                       "archetype_tool", "caching_policy_manager", "content_type_registry", \
31                       "cookie_authentication", "error_log", "kupu_library_tool",\
32                       "mimetypes_registry", "plone_utils", "reference_catalog",\
33                       "translation_service", "uid_catalog"]
34
35
36## Resource registries proprties
37CSS_REG_PROPS = ['id', 'expression', 'enabled', 'cookable', 'cacheable' \
38                ,'media', 'rel', 'title', 'rendering', 'compression']
39JS_REG_PROPS = ['id', 'expression', 'enabled', 'cookable', 'cacheable' \
40               ,'inline', 'compression']
41
42
43from Globals import package_home
44PRODUCTS_PATH = os.sep.join(package_home(GLOBALS).split(os.sep)[:-1])
45
46import Products
47from OFS.Application import get_products
Note: See TracBrowser for help on using the repository browser.