From: Benoît Pin Date: Mon, 21 Oct 2013 15:15:31 +0000 (+0200) Subject: Huge Plinn Folder utilisé à la place de l'historique Plinn Folder. X-Git-Url: https://scm.cri.ensmp.fr/git/Plinn.git/commitdiff_plain/d56af7d5daf44cca8a2d834be055c91c7dc48643 Huge Plinn Folder utilisé à la place de l'historique Plinn Folder. --- diff --git a/profiles/default/actions.xml b/profiles/default/actions.xml index dd9f41b..aa0c82c 100644 --- a/profiles/default/actions.xml +++ b/profiles/default/actions.xml @@ -211,7 +211,7 @@ string:${folder_url}/calendar_view python:member and folder is object and object.portal_type in ['Plinn Folder', 'Portfolio'] + name="available_expr">python:member and folder is object and object.portal_type in ['Huge Plinn Folder', 'Portfolio'] diff --git a/profiles/default/types/CMF_Site.xml b/profiles/default/types/CMF_Site.xml index 443c84d..34ce652 100755 --- a/profiles/default/types/CMF_Site.xml +++ b/profiles/default/types/CMF_Site.xml @@ -16,7 +16,7 @@ - + diff --git a/profiles/default/types/Huge_Plinn_Folder.xml b/profiles/default/types/Huge_Plinn_Folder.xml index 5abeaca..15616ad 100644 --- a/profiles/default/types/Huge_Plinn_Folder.xml +++ b/profiles/default/types/Huge_Plinn_Folder.xml @@ -19,7 +19,7 @@ - + diff --git a/profiles/default/various.py b/profiles/default/various.py index 18f9953..17a7101 100644 --- a/profiles/default/various.py +++ b/profiles/default/various.py @@ -70,7 +70,7 @@ doActionForOrSkip(site.index_html, 'direct_publish') # default folders constructOrSkip('Huge Plinn Folder', site, 'Members', title = translate('Members')) -#constructOrSkip('Plinn Folder', site, 'global_settings', title = translate('Portlets')) +#constructOrSkip('Huge Plinn Folder', site, 'global_settings', title = translate('Portlets')) if not hasattr(site, 'global_settings') : site.manage_addProduct['OFSP'].manage_addFolder('global_settings') if not site.global_settings.hasProperty('noIndex'): @@ -80,7 +80,7 @@ if not site.global_settings.hasProperty('noIndex'): constructOrSkip('Mosaic Document', site.global_settings, 'left_boxes', title=translate('Left boxes')) lb = site.global_settings.left_boxes addBlockOrSkip(lb, 'Tree Box Block', 0, id='nav_tree') -lb.nav_tree.saveBlock(filteredMetaTypes={'text' : ['Plinn Folder', 'Portfolio', 'Topic']}) +lb.nav_tree.saveBlock(filteredMetaTypes={'text' : ['Huge Plinn Folder', 'Portfolio', 'Topic']}) doActionForOrSkip(lb, 'direct_publish') # right boxes @@ -97,8 +97,8 @@ mtool = getToolByName(site, 'portal_membership') mtool.setMemberAreaPortalType('Huge Plinn Folder') gtool = getToolByName(site, 'portal_groups') -gtool.setGroupWorkspaceContainerType('Plinn Folder') -gtool.setGroupWorkspaceType('Plinn Folder') +gtool.setGroupWorkspaceContainerType('Huge Plinn Folder') +gtool.setGroupWorkspaceType('Huge Plinn Folder') caltool = getToolByName(site, 'portal_calendar') caltool.configureTool(['created', 'modified', 'DateTimeOriginal'], [9, 18]) diff --git a/profiles/default/workflows.xml b/profiles/default/workflows.xml index 20b0741..2c0d652 100644 --- a/profiles/default/workflows.xml +++ b/profiles/default/workflows.xml @@ -18,7 +18,7 @@ - + diff --git a/profiles/photo/actions.xml b/profiles/photo/actions.xml index dfed263..3719c8d 100644 --- a/profiles/photo/actions.xml +++ b/profiles/photo/actions.xml @@ -353,7 +353,7 @@ string:${folder_url}/calendar_view python:member and folder is object and object.portal_type in ['Plinn Folder', 'Portfolio'] + name="available_expr">python:member and folder is object and object.portal_type in ['Huge Plinn Folder', 'Portfolio'] diff --git a/profiles/photo/types/CMF_Site.xml b/profiles/photo/types/CMF_Site.xml index 4838f6d..d36c06c 100644 --- a/profiles/photo/types/CMF_Site.xml +++ b/profiles/photo/types/CMF_Site.xml @@ -20,7 +20,7 @@ - + diff --git a/profiles/photo/types/Huge_Plinn_Folder.xml b/profiles/photo/types/Huge_Plinn_Folder.xml index 49c99af..38799ea 100644 --- a/profiles/photo/types/Huge_Plinn_Folder.xml +++ b/profiles/photo/types/Huge_Plinn_Folder.xml @@ -21,7 +21,7 @@ - + diff --git a/profiles/photo/types/Plinn_Folder.xml b/profiles/photo/types/Plinn_Folder.xml index 41663ff..c33863b 100644 --- a/profiles/photo/types/Plinn_Folder.xml +++ b/profiles/photo/types/Plinn_Folder.xml @@ -1,5 +1,5 @@ - Folder - + diff --git a/profiles/photo/various.py b/profiles/photo/various.py index 18f9953..17a7101 100644 --- a/profiles/photo/various.py +++ b/profiles/photo/various.py @@ -70,7 +70,7 @@ doActionForOrSkip(site.index_html, 'direct_publish') # default folders constructOrSkip('Huge Plinn Folder', site, 'Members', title = translate('Members')) -#constructOrSkip('Plinn Folder', site, 'global_settings', title = translate('Portlets')) +#constructOrSkip('Huge Plinn Folder', site, 'global_settings', title = translate('Portlets')) if not hasattr(site, 'global_settings') : site.manage_addProduct['OFSP'].manage_addFolder('global_settings') if not site.global_settings.hasProperty('noIndex'): @@ -80,7 +80,7 @@ if not site.global_settings.hasProperty('noIndex'): constructOrSkip('Mosaic Document', site.global_settings, 'left_boxes', title=translate('Left boxes')) lb = site.global_settings.left_boxes addBlockOrSkip(lb, 'Tree Box Block', 0, id='nav_tree') -lb.nav_tree.saveBlock(filteredMetaTypes={'text' : ['Plinn Folder', 'Portfolio', 'Topic']}) +lb.nav_tree.saveBlock(filteredMetaTypes={'text' : ['Huge Plinn Folder', 'Portfolio', 'Topic']}) doActionForOrSkip(lb, 'direct_publish') # right boxes @@ -97,8 +97,8 @@ mtool = getToolByName(site, 'portal_membership') mtool.setMemberAreaPortalType('Huge Plinn Folder') gtool = getToolByName(site, 'portal_groups') -gtool.setGroupWorkspaceContainerType('Plinn Folder') -gtool.setGroupWorkspaceType('Plinn Folder') +gtool.setGroupWorkspaceContainerType('Huge Plinn Folder') +gtool.setGroupWorkspaceType('Huge Plinn Folder') caltool = getToolByName(site, 'portal_calendar') caltool.configureTool(['created', 'modified', 'DateTimeOriginal'], [9, 18]) diff --git a/profiles/photo/workflows.xml b/profiles/photo/workflows.xml index cf8ec47..5686c60 100644 --- a/profiles/photo/workflows.xml +++ b/profiles/photo/workflows.xml @@ -26,7 +26,7 @@ - + diff --git a/skins/control/createPlinnFolder.py b/skins/control/createPlinnFolder.py index ed09c7f..c103734 100644 --- a/skins/control/createPlinnFolder.py +++ b/skins/control/createPlinnFolder.py @@ -1,4 +1,4 @@ ## Script (Python) "createPlinnFolder" ##title=mkdir hook script for Plinn Folder ##parameters=id -context.invokeFactory(type_name='Plinn Folder', id=id) \ No newline at end of file +context.invokeFactory(type_name='Huge Plinn Folder', id=id) \ No newline at end of file diff --git a/skins/custom_control/addtoFavorites.py b/skins/custom_control/addtoFavorites.py index 2816b6f..03d5a86 100644 --- a/skins/custom_control/addtoFavorites.py +++ b/skins/custom_control/addtoFavorites.py @@ -12,7 +12,7 @@ ttool = portal.portal_types homeFolder = portal.portal_membership.getHomeFolder() if not hasattr(homeFolder, 'Favorites'): - ttool.constructContent( 'Plinn Folder', homeFolder, 'Favorites', title=str(_('Favorites')) ) + ttool.constructContent( 'Huge Plinn Folder', homeFolder, 'Favorites', title=str(_('Favorites')) ) targetFolder = getattr( homeFolder, 'Favorites' ) new_id='fav_' + str(int( context.ZopeTime())) diff --git a/skins/generic/gruf_macros.pt b/skins/generic/gruf_macros.pt index 60c2d76..08ab86e 100755 --- a/skins/generic/gruf_macros.pt +++ b/skins/generic/gruf_macros.pt @@ -421,7 +421,7 @@ class="boxes_container" tal:define="selectedMember python:here.portal_membership.getMemberById(request.member_id); treeRoot portal_object; - treeDict python:here.make_nav_tree(rootObject=treeRoot, filtered_meta_types=['Plinn Folder', 'Portfolio', 'Topic'], userid=request.member_id ); + treeDict python:here.make_nav_tree(rootObject=treeRoot, filtered_meta_types=['Huge Plinn Folder', 'Portfolio', 'Topic'], userid=request.member_id ); tree treeDict/tree; rows treeDict/rows; height tree/height; diff --git a/skins/generic/searchableTypes.py b/skins/generic/searchableTypes.py index 58f9d40..276ed46 100644 --- a/skins/generic/searchableTypes.py +++ b/skins/generic/searchableTypes.py @@ -1,5 +1,5 @@ ##parameters= -folderishTypes = ['Plinn Folder', 'Calendar', 'Portfolio'] +folderishTypes = ['Huge Plinn Folder', 'Calendar', 'Portfolio'] ttool = context.portal_types allFtis = ttool.listTypeInfo()