projects
/
Plinn.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ad4c610
)
Ajout fonction utilitaire json_dumps
author
Benoît Pin
<pin@cri.ensmp.fr>
Tue, 31 Mar 2015 13:14:53 +0000
(15:14 +0200)
committer
Benoît Pin
<pin@cri.ensmp.fr>
Tue, 31 Mar 2015 13:14:53 +0000
(15:14 +0200)
Products/Plinn/utils.py
patch
|
blob
|
history
diff --git
a/Products/Plinn/utils.py
b/Products/Plinn/utils.py
index
f15fd09
..
15536b0
100755
(executable)
--- a/
Products/Plinn/utils.py
+++ b/
Products/Plinn/utils.py
@@
-24,10
+24,10
@@
import string
import re
import string
import re
-from types import StringType
from random import randrange
from Acquisition import aq_base
from quopri import encodestring
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
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 = ModuleSecurityInfo( 'Products.Plinn.utils' )
+security.declarePublic('json_dumps')
+
security.declarePublic('thisObjectComeFromPortalSkin')
def thisObjectComeFromPortalSkin(ob, portal=None):
""" check if ob comes from portal_skins """
security.declarePublic('thisObjectComeFromPortalSkin')
def thisObjectComeFromPortalSkin(ob, portal=None):
""" check if ob comes from portal_skins """