source: products/qPloneSkinDump/branches/multipleslots/skin_template/config.py @ 1591

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

Building directory structure

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