NCCOOS Trac Projects: Top | Web | Platforms | Processing | Viz | Sprints | Sandbox | (Wind)

root/NCCOOSSite/trunk/NCCOOSSite/config.py

Revision 1 (checked in by cbc, 17 years ago)

Initial import

Line 
1 ## PLONE AND SKIN PRODUCT SPECIFIC CONSTANTS
2 GLOBALS = globals()
3 GENERATOR_PRODUCT = "qPloneSkinDump"
4 PRODUCT_NAME = "NCCOOSSite"
5 SKIN_NAME = "nccoos"
6 BASE_SKIN_NAME = "Plone Default"
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
16 LEFT_SLOTS = None
17 RIGHT_SLOTS = None
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"
26 SLOT_FORMING = "None"
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"
39 MAIN_COLUMN = "None"
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
52 DOES_COSTOMIZE_CSS = True
53 #DOES_COSTOMIZE_JS = True # Do portal_javascripts customization
54 #DOES_COSTOMIZE_JS = False # Do NOT portal_javascripts customization
55 DOES_COSTOMIZE_JS = True
56
57 ## Skin Product's CSS and Javascript lists.
58 CSS_LIST = []
59 JS_LIST = []
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.
64 SKIN_CSS_REGDATA = [{'cacheable': True, 'compression': 'safe', 'title': '', 'expression': '', 'enabled': 1, 'rendering': 'import', 'rel': 'stylesheet', 'media': 'screen', 'cookable': True, 'id': 'base.css'}, {'cacheable': True, 'compression': 'safe', 'title': '', 'expression': '', 'enabled': 1, 'rendering': 'import', 'rel': 'stylesheet', 'media': 'screen', 'cookable': True, 'id': 'public.css'}, {'cacheable': True, 'compression': 'safe', 'title': '', 'expression': '', 'enabled': 1, 'rendering': 'import', 'rel': 'stylesheet', 'media': 'screen', 'cookable': True, 'id': 'columns.css'}, {'cacheable': True, 'compression': 'safe', 'title': '', 'expression': '', 'enabled': 1, 'rendering': 'import', 'rel': 'stylesheet', 'media': 'screen', 'cookable': True, 'id': 'authoring.css'}, {'cacheable': True, 'compression': 'safe', 'title': '', 'expression': '', 'enabled': 1, 'rendering': 'import', 'rel': 'stylesheet', 'media': 'screen', 'cookable': True, 'id': 'portlets.css'}, {'cacheable': True, 'compression': 'safe', 'title': '', 'expression': '', 'enabled': 1, 'rendering': 'import', 'rel': 'stylesheet', 'media': 'projection', 'cookable': True, 'id': 'presentation.css'}, {'cacheable': True, 'compression': 'safe', 'title': '', 'expression': '', 'enabled': 1, 'rendering': 'import', 'rel': 'stylesheet', 'media': 'print', 'cookable': True, 'id': 'print.css'}, {'cacheable': True, 'compression': 'safe', 'title': '', 'expression': '', 'enabled': 1, 'rendering': 'import', 'rel': 'stylesheet', 'media': 'handheld', 'cookable': True, 'id': 'mobile.css'}, {'cacheable': True, 'compression': 'safe', 'title': '', 'expression': '', 'enabled': 1, 'rendering': 'import', 'rel': 'stylesheet', 'media': 'screen', 'cookable': True, 'id': 'deprecated.css'}, {'cacheable': True, 'compression': 'safe', 'title': '', 'expression': '', 'enabled': 1, 'rendering': 'import', 'rel': 'stylesheet', 'media': 'screen', 'cookable': True, 'id': 'generated.css'}, {'cacheable': True, 'compression': 'safe', 'title': '', 'expression': 'not: portal/portal_membership/isAnonymousUser', 'enabled': 1, 'rendering': 'import', 'rel': 'stylesheet', 'media': 'screen', 'cookable': True, 'id': 'member.css'}, {'cacheable': True, 'compression': 'safe', 'title': '', 'expression': 'object/@@plone/isRightToLeft', 'enabled': 1, 'rendering': 'import', 'rel': 'stylesheet', 'media': 'screen', 'cookable': True, 'id': 'RTL.css'}, {'cacheable': True, 'compression': 'safe', 'title': 'Small Text', 'expression': '', 'enabled': 1, 'rendering': 'link', 'rel': 'alternate stylesheet', 'media': 'screen', 'cookable': True, 'id': 'textSmall.css'}, {'cacheable': True, 'compression': 'safe', 'title': 'Large Text', 'expression': '', 'enabled': 1, 'rendering': 'link', 'rel': 'alternate stylesheet', 'media': 'screen', 'cookable': True, 'id': 'textLarge.css'}, {'cacheable': True, 'compression': 'safe', 'title': '', 'expression': 'python:portal.kupu_library_tool.isKupuEnabled(REQUEST=request)', 'enabled': True, 'rendering': 'import', 'rel': 'stylesheet', 'media': '', 'cookable': True, 'id': 'kupustyles.css'}, {'cacheable': True, 'compression': 'safe', 'title': '', 'expression': 'python:portal.kupu_library_tool.isKupuEnabled(REQUEST=request)', 'enabled': True, 'rendering': 'import', 'rel': 'stylesheet', 'media': '', 'cookable': True, 'id': 'kupuplone.css'}, {'cacheable': True, 'compression': 'safe', 'title': '', 'expression': 'python:portal.kupu_library_tool.isKupuEnabled(REQUEST=request)', 'enabled': True, 'rendering': 'import', 'rel': 'stylesheet', 'media': '', 'cookable': True, 'id': 'kupudrawerstyles.css'}, {'cacheable': True, 'compression': 'safe', 'title': '', 'expression': '', 'enabled': 1, 'rendering': 'import', 'rel': 'stylesheet', 'media': 'all', 'cookable': True, 'id': 'ploneCustom.css'}]
65 SKIN_JS_REGDATA = [{'cacheable': True, 'compression': 'safe', 'expression': '', 'enabled': True, 'inline': '', 'cookable': True, 'id': 'event-registration.js'}, {'cacheable': True, 'compression': 'safe', 'expression': '', 'enabled': True, 'inline': '', 'cookable': True, 'id': 'register_function.js'}, {'cacheable': True, 'compression': 'safe', 'expression': '', 'enabled': True, 'inline': '', 'cookable': True, 'id': 'cssQuery.js'}, {'cacheable': True, 'compression': 'safe', 'expression': '', 'enabled': True, 'inline': '', 'cookable': True, 'id': 'plone_javascript_variables.js'}, {'cacheable': True, 'compression': 'safe', 'expression': '', 'enabled': True, 'inline': '', 'cookable': True, 'id': 'nodeutilities.js'}, {'cacheable': True, 'compression': 'safe', 'expression': '', 'enabled': True, 'inline': '', 'cookable': True, 'id': 'cookie_functions.js'}, {'cacheable': True, 'compression': 'safe', 'expression': '', 'enabled': True, 'inline': '', 'cookable': True, 'id': 'livesearch.js'}, {'cacheable': True, 'compression': 'safe', 'expression': '', 'enabled': True, 'inline': '', 'cookable': True, 'id': 'fullscreenmode.js'}, {'cacheable': True, 'compression': 'safe', 'expression': '', 'enabled': True, 'inline': '', 'cookable': True, 'id': 'select_all.js'}, {'cacheable': True, 'compression': 'safe', 'expression': '', 'enabled': True, 'inline': '', 'cookable': True, 'id': 'dropdown.js'}, {'cacheable': True, 'compression': 'safe', 'expression': '', 'enabled': True, 'inline': '', 'cookable': True, 'id': 'dragdropreorder.js'}, {'cacheable': True, 'compression': 'safe', 'expression': '', 'enabled': True, 'inline': '', 'cookable': True, 'id': 'mark_special_links.js'}, {'cacheable': True, 'compression': 'safe', 'expression': '', 'enabled': True, 'inline': '', 'cookable': True, 'id': 'collapsiblesections.js'}, {'cacheable': True, 'compression': 'safe', 'expression': '', 'enabled': True, 'inline': '', 'cookable': True, 'id': 'highlightsearchterms.js'}, {'cacheable': True, 'compression': 'safe', 'expression': '', 'enabled': True, 'inline': '', 'cookable': True, 'id': 'se-highlight.js'}, {'cacheable': True, 'compression': 'safe', 'expression': '', 'enabled': True, 'inline': '', 'cookable': True, 'id': 'first_input_focus.js'}, {'cacheable': True, 'compression': 'safe', 'expression': '', 'enabled': True, 'inline': '', 'cookable': True, 'id': 'folder_contents_filter.js'}, {'cacheable': True, 'compression': 'safe', 'expression': '', 'enabled': True, 'inline': '', 'cookable': True, 'id': 'folder_contents_hideAddItems.js'}, {'cacheable': True, 'compression': 'safe', 'expression': '', 'enabled': True, 'inline': '', 'cookable': True, 'id': 'styleswitcher.js'}, {'cacheable': True, 'compression': 'safe', 'expression': '', 'enabled': True, 'inline': '', 'cookable': True, 'id': 'table_sorter.js'}, {'cacheable': True, 'compression': 'safe', 'expression': '', 'enabled': True, 'inline': '', 'cookable': True, 'id': 'calendar_formfield.js'}, {'cacheable': True, 'compression': 'safe', 'expression': '', 'enabled': True, 'inline': '', 'cookable': True, 'id': 'calendarpopup.js'}, {'cacheable': True, 'compression': 'safe', 'expression': '', 'enabled': True, 'inline': '', 'cookable': True, 'id': 'ie5fixes.js'}, {'cacheable': True, 'compression': 'safe', 'expression': '', 'enabled': True, 'inline': '', 'cookable': True, 'id': 'formUnload.js'}, {'cacheable': True, 'compression': 'safe', 'expression': '', 'enabled': True, 'inline': '', 'cookable': True, 'id': 'sarissa.js'}, {'cacheable': True, 'compression': 'safe', 'expression': '', 'enabled': '', 'inline': '', 'cookable': True, 'id': 'plone_minwidth.js'}, {'cacheable': True, 'compression': 'safe', 'expression': '', 'enabled': '', 'inline': '', 'cookable': True, 'id': 'correctPREformatting.js'}, {'cacheable': True, 'compression': 'safe', 'expression': '', 'enabled': True, 'inline': '', 'cookable': True, 'id': 'login.js'}, {'cacheable': True, 'compression': 'safe', 'expression': '', 'enabled': True, 'inline': '', 'cookable': True, 'id': 'formsubmithelpers.js'}, {'cacheable': True, 'compression': 'safe', 'expression': 'python:portal.kupu_library_tool.isKupuEnabled(REQUEST=request)', 'enabled': True, 'inline': '', 'cookable': True, 'id': 'kupunoi18n.js'}, {'cacheable': True, 'compression': 'safe', 'expression': 'python:portal.kupu_library_tool.isKupuEnabled(REQUEST=request)', 'enabled': True, 'inline': '', 'cookable': True, 'id': 'sarissa_ieemu_xpath.js'}, {'cacheable': True, 'compression': 'safe', 'expression': 'python:portal.kupu_library_tool.isKupuEnabled(REQUEST=request)', 'enabled': True, 'inline': '', 'cookable': True, 'id': 'kupuhelpers.js'}, {'cacheable': True, 'compression': 'safe', 'expression': 'python:portal.kupu_library_tool.isKupuEnabled(REQUEST=request)', 'enabled': True, 'inline': '', 'cookable': True, 'id': 'kupueditor.js'}, {'cacheable': True, 'compression': 'safe', 'expression': 'python:portal.kupu_library_tool.isKupuEnabled(REQUEST=request)', 'enabled': True, 'inline': '', 'cookable': True, 'id': 'kupubasetools.js'}, {'cacheable': True, 'compression': 'safe', 'expression': 'python:portal.kupu_library_tool.isKupuEnabled(REQUEST=request)', 'enabled': True, 'inline': '', 'cookable': True, 'id': 'kupuloggers.js'}, {'cacheable': True, 'compression': 'safe', 'expression': 'python:portal.kupu_library_tool.isKupuEnabled(REQUEST=request)', 'enabled': True, 'inline': '', 'cookable': True, 'id': 'kupucontentfilters.js'}, {'cacheable': True, 'compression': 'safe', 'expression': 'python:portal.kupu_library_tool.isKupuEnabled(REQUEST=request)', 'enabled': True, 'inline': '', 'cookable': True, 'id': 'kupucontextmenu.js'}, {'cacheable': True, 'compression': 'safe', 'expression': 'python:portal.kupu_library_tool.isKupuEnabled(REQUEST=request)', 'enabled': True, 'inline': '', 'cookable': True, 'id': 'kupuploneeditor.js'}, {'cacheable': True, 'compression': 'safe', 'expression': 'python:portal.kupu_library_tool.isKupuEnabled(REQUEST=request)', 'enabled': True, 'inline': '', 'cookable': True, 'id': 'kupuploneui.js'}, {'cacheable': True, 'compression': 'safe', 'expression': 'python:portal.kupu_library_tool.isKupuEnabled(REQUEST=request)', 'enabled': True, 'inline': '', 'cookable': True, 'id': 'kupusourceedit.js'}, {'cacheable': True, 'compression': 'safe', 'expression': 'python:portal.kupu_library_tool.isKupuEnabled(REQUEST=request)', 'enabled': True, 'inline': '', 'cookable': True, 'id': 'kupudrawers.js'}, {'cacheable': True, 'compression': 'safe', 'expression': 'python:portal.kupu_library_tool.isKupuEnabled(REQUEST=request)', 'enabled': True, 'inline': '', 'cookable': True, 'id': 'kupuploneinit.js'}]
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"
84 IMPORT_POLICY = "None"
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]
100 from Products.CMFCore.utils import getToolByName
101 FINAL_CUSTOMIZATION_FUNCTIONS = []
Note: See TracBrowser for help on using the browser.