source: products/qPloneSkinDump/tags/0.7.3/skin_template/config.py @ 1552

Last change on this file since 1552 was 1, checked in by myroslav, 18 years ago

Building directory structure

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