X-Git-Url: https://scm.cri.mines-paristech.fr/git/Plinn.git/blobdiff_plain/aeb758b645034bb95fe967aca66aa014f5bce97b..0d3a1fd8ce795de7d006e5080712f6850f34cadc:/Products/Plinn/utils.py 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 """