X-Git-Url: https://scm.cri.ensmp.fr/git/Plinn.git/blobdiff_plain/aeb758b645034bb95fe967aca66aa014f5bce97b..a8353cb1b9280f27b442e1659534a1116336da1b:/Products/Plinn/utils.py?ds=sidebyside 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 """