projects
/
Plinn.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
928f7b3
)
Ajout de la configuration de portal_image_manipulation (ajout des dossiers 'tile...
author
Benoît Pin
<benoit.pin@gmail.com>
Thu, 11 Nov 2010 10:18:24 +0000
(11:18 +0100)
committer
Benoît Pin
<benoit.pin@gmail.com>
Thu, 11 Nov 2010 10:18:24 +0000
(11:18 +0100)
profiles/photo/various.py
patch
|
blob
|
history
diff --git
a/profiles/photo/various.py
b/profiles/photo/various.py
index
2932d81
..
8141a6d
100644
(file)
--- a/
profiles/photo/various.py
+++ b/
profiles/photo/various.py
@@
-87,8
+87,8
@@
rb = site.global_settings.right_boxes
addBlockOrSkip(rb, 'Action Box Block', 0, id='global_actions')
rb.global_actions.saveBlock(boxTitle={'text' : translate('Global actions')}, categories={'text' : ['global']})
addBlockOrSkip(rb, 'Action Box Block', 0, id='workflow_actions')
addBlockOrSkip(rb, 'Action Box Block', 0, id='global_actions')
rb.global_actions.saveBlock(boxTitle={'text' : translate('Global actions')}, categories={'text' : ['global']})
addBlockOrSkip(rb, 'Action Box Block', 0, id='workflow_actions')
-
#
rb.workflow_actions.saveBlock(boxTitle={'text' : translate('Workflow')}, categories={'text' : ['workflow']})
-
#
doActionForOrSkip(rb, 'direct_publish')
+rb.workflow_actions.saveBlock(boxTitle={'text' : translate('Workflow')}, categories={'text' : ['workflow']})
+doActionForOrSkip(rb, 'direct_publish')
# tools settings
mtool = getToolByName(site, 'portal_membership')
# tools settings
mtool = getToolByName(site, 'portal_membership')
@@
-101,6
+101,15
@@
gtool.setGroupWorkspaceType('Plinn Folder')
caltool = getToolByName(site, 'portal_calendar')
caltool.configureTool(['created', 'modified', 'DateTimeOriginal'], [9, 18])
caltool = getToolByName(site, 'portal_calendar')
caltool.configureTool(['created', 'modified', 'DateTimeOriginal'], [9, 18])
+pimtool = getToolByName(site, 'portal_image_manipulation')
+pimtool.manage_addProduct['OFSP'].manage_addFolder('image')
+pimtool.manage_addProduct['OFSP'].manage_addFolder('tile')
+
+ctool = getToolByName(site, 'portal_catalog')
+ctool.manage_addProduct['ProxyIndex'].manage_addProxyIndex('position',
+ extra = { 'idx_type' : 'FieldIndex'
+ , 'value_expr' : 'python:object.getParentNode().getObjectPosition(object.getId())'})
+
# Caches
HTTPCache = site.HTTPCache
HTTPCache.manage_editProps(title='Accelerated HTTP Cache',
# Caches
HTTPCache = site.HTTPCache
HTTPCache.manage_editProps(title='Accelerated HTTP Cache',