-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
68 lines (60 loc) · 2.39 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
from Products.CMFCore.permissions import ManagePortal
PROJECTNAME = 'TagCloud'
TOOLNAME = 'tagcloud_tool'
SKINS_DIR = 'skins'
GLOBALS = globals()
LEVELS = 5
CACHE_MANAGER = 'TagCloudCache'
CACHE_MANAGER_SETTINGS = {
'request_vars' : ('AUTHENTICATED_USER',),
'threshold' : 100,
'max_age' : 60,
'cleanup_interval' : 300,
}
PORTLETS = (
'here/portlet_tag_cloud_cache',
)
CONFIGLETS = (
{ 'id' : 'tagcloud'
, 'name' : 'Tag Cloud Settings'
, 'action' : 'string:${portal_url}/prefs_tagcloud_form'
, 'condition' : ''
, 'category' : 'Products' # section to which the configlet should be added:
# (Plone,Products,Members)
, 'visible' : 1
, 'appId' : PROJECTNAME
, 'permission' : ManagePortal
, 'imageUrl' : 'skins/tagcloud_images/cloud_icon.png'
},
)
# CHANGE this tuple of python dictionnaries to list the stylesheets that
# will be registered with the portal_css tool.
# 'id' (required):
# it must respect the name of the css or DTML file (case sensitive).
# '.dtml' suffixes must be ignored.
# 'expression' (optional - default: ''): a tal condition.
# 'media' (optional - default: ''): possible values: 'screen', 'print',
# 'projection', 'handheld'...
# 'rel' (optional - default: 'stylesheet')
# 'title' (optional - default: '')
# 'rendering' (optional - default: 'import'): 'import', 'link' or 'inline'.
# 'enabled' (optional - default: True): boolean
# 'cookable' (optional - default: True): boolean (aka 'merging allowed')
# See registerStylesheet() arguments in
# ResourceRegistries/tools/CSSRegistry.py
# for the latest list of all available keys and default values.
STYLESHEETS = (
{'id': 'tagcloud.css', 'media': 'screen', 'rendering': 'import'},
)
# CHANGE this tuple of python dictionnaries to list the javascripts that
# will be registered with the portal_javascripts tool.
# 'id' (required): same rules as for stylesheets.
# 'expression' (optional - default: ''): a tal condition.
# 'inline' (optional - default: False): boolean
# 'enabled' (optional - default: True): boolean
# 'cookable' (optional - default: True): boolean (aka 'merging allowed')
# See registerScript() arguments in ResourceRegistries/tools/JSRegistry.py
# for the latest list of all available keys and default values.
JAVASCRIPTS = (
# {'id': 'myjavascript.js.dtml',},
)