From 2adcc44a594a9c623ae21ce1a010752ee87ed88e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Benoi=CC=82t=20Pin?= Date: Tue, 31 Mar 2015 15:14:53 +0200 Subject: [PATCH] Ajout fonction utilitaire json_dumps --- Products/Plinn/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Products/Plinn/utils.py b/Products/Plinn/utils.py index f15fd09..15536b0 100755 --- a/Products/Plinn/utils.py +++ b/Products/Plinn/utils.py @@ -24,10 +24,10 @@ import string import re -from types import StringType from random import randrange from Acquisition import aq_base from quopri import encodestring +from json import dumps as json_dumps from zope.globalrequest import getRequest from AccessControl.PermissionRole import rolesForPermissionOn from AccessControl import ModuleSecurityInfo @@ -49,6 +49,8 @@ _marker = [] security = ModuleSecurityInfo( 'Products.Plinn.utils' ) +security.declarePublic('json_dumps') + security.declarePublic('thisObjectComeFromPortalSkin') def thisObjectComeFromPortalSkin(ob, portal=None): """ check if ob comes from portal_skins """ -- 2.20.1