source: products/qPloneSkinDump/trunk/skin_template/config.py @ 2111

Last change on this file since 2111 was 74, checked in by chervol, 15 years ago

initial plone2.0.5 branch import

File size: 4.5 KB
Line 
1import os
2## PLONE AND SKIN PRODUCT SPECIFIC CONSTANTS
3GLOBALS = globals()
4GENERATOR_PRODUCT = "%(GENERATOR_PRODUCT)s"
5PRODUCT_NAME = "%(SKIN_PRODUCT_NAME)s"
6SKIN_NAME = "%(SKIN_NAME)s"
7BASE_SKIN_NAME = "%(BASE_SKIN_NAME)s"
8
9
10##
11## SLOT FORMING CONSTANTS
12##
13## Skin Product's portlet lists for left and right columns.
14## 'None' - mean that on installation slot will not be changed.
15## ['some/portlet1','some/portlet2'] - will change appropriate (left or right)
16##                                     slot to listed portlets
17#LEFT_SLOTS = %(LEFT_SLOTS)s
18#RIGHT_SLOTS = %(RIGHT_SLOTS)s
19
20## Slot's list forming procedure.
21## "blend_with_skin" [default]- to SKIN PRODUCT'S slots list added unknown slots from SITE.
22## "blend_with_site" - to SITE's slots list added unknown slots from SKIN PRODUCT.
23## "replace" - in left and right site's columns placed ONLY SKIN PRODUCT's slots.
24#SLOT_FORMING = "blend_with_skin"
25#SLOT_FORMING = "blend_with_site"
26#SLOT_FORMING = "replace"
27#SLOT_FORMING = "%(SLOT_FORMING)s"
28
29## Favour column for slots forming procedure. IMPORTANT only for 'Blend with...'
30## Slot's list forming procedure.
31## "left" OR "right" - if find same slots in left and right columns - than
32##                     slots move accordingly to left/right column.
33## "both" - if find same slots in left and right columns - than slots
34##          positionings as in Master's slots lists -
35##          from SKIN PRODUCT's slots for 'Blend with skin' procedure
36##          and SITE's slots for 'Blend with site' one.
37#MAIN_COLUMN = "left"
38#MAIN_COLUMN = "right"
39#MAIN_COLUMN = "both"
40#MAIN_COLUMN = "%(MAIN_COLUMN)s"
41
42
43##
44## CSS AND JAVASCRIPTS RESOURCES CONSTANTS
45## Actual only for 2.1+ Plone. For older Plone version - this data not used.
46## Work only if at least one of (DOES_COSTOMIZE_CSS, DOES_COSTOMIZE_JS)
47## constant(s) set to True
48##
49## Does customize CSS or Javascripts resources - define if perform corresponding
50## registry customization.
51#DOES_COSTOMIZE_CSS = True # Do portal_css customization
52#DOES_COSTOMIZE_CSS = False # Do NOT portal_css customization
53DOES_COSTOMIZE_CSS = %(DUMP_CSS)s
54#DOES_COSTOMIZE_JS = True # Do portal_javascripts customization
55#DOES_COSTOMIZE_JS = False # Do NOT portal_javascripts customization
56DOES_COSTOMIZE_JS = %(DUMP_JS)s
57
58## Skin Product's CSS and Javascript lists.
59CSS_LIST = %(CSS_LIST)s
60JS_LIST = %(JS_LIST)s
61
62## CSS and Javascript registries settings for Skin Product.
63## Actual for right functionality css-es and ECMA scripts.
64## For manually changing you must know what you do.
65SKIN_CSS_REGDATA = %(SKIN_CSS_REGDATA)s
66SKIN_JS_REGDATA = %(SKIN_JS_REGDATA)s
67
68
69##
70## IMPORTING OBJECTS TO PORTAL ROOT
71##
72## *IMPORT_POLICY* define importing behavior in case of presenting identical
73## ids among both - portal root objects and imported objects from
74## <SkinProduct>/import subdirectory.
75## "only_new" [default]- imported objects with same ids are ignored - not imported.
76## "backup" - in case of presenting same id objects, in portal root creates
77##            back_[date] directory, where moved all same id's objects from
78##            portal root. Then all objects are imported to portal root.
79## "overwrite" - all objects in portal root with same ids are deleted. Then all
80##               objects are imported to portal root.
81#
82#IMPORT_POLICY = "backup"
83#IMPORT_POLICY = "overwrite"
84#IMPORT_POLICY = "only_new"
85IMPORT_POLICY = "%(IMPORT_POLICY)s"
86
87
88##
89## CUSTOMIZATION FUNCTIONS
90##
91## FINAL_CUSTOMIZATION_FUNCTIONS - list of additional customization functions.
92## For perform additional customization in the SkinProduct - write in this config.py
93## module a customization function(s) and add its name(s) to FINAL_CUSTOMIZATION_FUNCTIONS
94## constant list. Customization function must acept 2 parameters: 'portal' and 'out'.
95## Example:   
96## def myCustomization(portal, out):
97##     # Clear right slots for portal
98##     portal.manage_addProperty('my_prop', 'my_value', type='string')
99##     print >> out, "right slots deleted for portal."
100## FINAL_CUSTOMIZATION_FUNCTIONS = [myCustomization]
101from Products.CMFCore.utils import getToolByName
102FINAL_CUSTOMIZATION_FUNCTIONS = []
103
104# site portlets registry
105SLOT_STRUCTURE = %(slot_structure)s
106
107# portal_view_customization content
108CUSTOM_VIEWS = %(custom_views)s
109
110# absolute file system path to product
111from Globals import package_home
112PRODUCTS_PATH = os.sep.join(package_home(GLOBALS).split(os.sep)[:-1])
113
114## GenericSetup constants
115GS_INSTALL_PROFILE      = "profile-Products.%(product_name)s:default"
116GS_AFTERINSTALL_PROFILE = "profile-Products.%(product_name)s:afterinstall"
117GS_UNINSTALL_PROFILE    = "profile-Products.%(product_name)s:uninstall"
Note: See TracBrowser for help on using the repository browser.