From 3a90429ca4498086cc762cad292071a1c4cb44d9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Beno=C3=AEt=20Pin?= Date: Mon, 31 Mar 2014 09:55:15 +0200 Subject: [PATCH] Abandon de thumb_height et thumb_width au profit de thumb_size. --- AttachmentTool.py | 4 ++-- profiles/default/properties.xml | 10 ++-------- profiles/photo/properties.xml | 10 ++-------- 3 files changed, 6 insertions(+), 18 deletions(-) diff --git a/AttachmentTool.py b/AttachmentTool.py index aea969b..a61b4e4 100644 --- a/AttachmentTool.py +++ b/AttachmentTool.py @@ -78,8 +78,8 @@ class AttachmentTool( UniqueObject, SimpleItem): id = makeValidId(attachments, title) if typeName == 'Photo': - thumbSize = {'thumb_height' : portal.getProperty('thumb_height', 128), - 'thumb_width' : portal.getProperty('thumb_width', 128)} + thumbSize = {'thumb_height' : portal.getProperty('thumb_size', 128), + 'thumb_width' : portal.getProperty('thumb_size', 128)} fileOb = Photo(id, title, file, **thumbSize) elif typeName == 'File' : fileOb = File(id, title, '') diff --git a/profiles/default/properties.xml b/profiles/default/properties.xml index ab496f7..ca5a87e 100644 --- a/profiles/default/properties.xml +++ b/profiles/default/properties.xml @@ -6,17 +6,9 @@ postmaster@localhost - 192 - 192 - - - - - True fr False - 222 Untitled- utf-8 utf-8 @@ -34,6 +26,8 @@ 2 + 192 + 222 #ffffff 25 100 diff --git a/profiles/photo/properties.xml b/profiles/photo/properties.xml index 427fc86..854f3ec 100644 --- a/profiles/photo/properties.xml +++ b/profiles/photo/properties.xml @@ -6,17 +6,9 @@ postmaster@localhost - 192 - 192 - - - - - True fr False - 222 Untitled- utf-8 utf-8 @@ -35,6 +27,8 @@ 2 + 192 + 222 #484848 25 100 -- 2.20.1