From: BenoƮt Pin Date: Mon, 31 Mar 2014 07:55:15 +0000 (+0200) Subject: Abandon de thumb_height et thumb_width au profit de thumb_size. X-Git-Url: https://svn.cri.ensmp.fr/git/Plinn.git/commitdiff_plain/3a90429ca4498086cc762cad292071a1c4cb44d9?ds=sidebyside Abandon de thumb_height et thumb_width au profit de thumb_size. --- 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