[1] | 1 | import re |
---|
| 2 | from Products.CMFCore import CMFCorePermissions |
---|
| 3 | |
---|
| 4 | ## Base Product Constants |
---|
| 5 | GLOBALS = globals() |
---|
| 6 | PROJECTNAME = "qPloneSkinDump" |
---|
| 7 | ADD_CONTENT_PERMISSION = CMFCorePermissions.AddPortalContent |
---|
| 8 | CONFIGURATION_CONFIGLET = "qploneskindump_configuration" |
---|
| 9 | |
---|
| 10 | |
---|
| 11 | ## Constants for Scin Product generation |
---|
| 12 | TEMPLATE_PATH = "skin_template" |
---|
| 13 | |
---|
| 14 | |
---|
| 15 | ## Constants for slots castomization |
---|
| 16 | SLOT_FORMING_LIST = ["blend_with_skin", "blend_with_site", "replace"] |
---|
| 17 | DEFAULT_SLOT_FORMING = "blend_with_skin" |
---|
| 18 | MAIN_COLUMN_LIST = ["left", "right", "both"] |
---|
| 19 | DEFAULT_MAIN_COLUMN = "both" |
---|
| 20 | |
---|
| 21 | |
---|
| 22 | ## Constants for Exporting objects |
---|
| 23 | IMPORTING_POLICY_LIST = ["only_new","backup","overwrite"] |
---|
| 24 | DEFAULT_IMPORTING_POLICY = "only_new" |
---|
| 25 | FORBIDDEN_EXP_PREFIXES = re.compile('^(portal_)') |
---|
| 26 | FORBIDDEN_EXP_NAMES = ["MailHost", "HTTPCache", "Members", "RAMCache", "acl_users",\ |
---|
| 27 | "archetype_tool", "caching_policy_manager", "content_type_registry", \ |
---|
| 28 | "cookie_authentication", "error_log", "kupu_library_tool",\ |
---|
| 29 | "mimetypes_registry", "plone_utils", "reference_catalog",\ |
---|
| 30 | "translation_service", "uid_catalog"] |
---|
| 31 | |
---|
| 32 | |
---|
| 33 | ## Resource registries proprties |
---|
| 34 | CSS_REG_PROPS = ['id', 'expression', 'enabled', 'cookable', 'cacheable' \ |
---|
| 35 | ,'media', 'rel', 'title', 'rendering', 'compression'] |
---|
| 36 | JS_REG_PROPS = ['id', 'expression', 'enabled', 'cookable', 'cacheable' \ |
---|
| 37 | ,'inline', 'compression'] |
---|