X-Git-Url: https://scm.cri.mines-paristech.fr/git/Plinn.git/blobdiff_plain/aeb758b645034bb95fe967aca66aa014f5bce97b..55fa8d8e6b6b1562174b12c2658dd463c9b018dc:/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 """