diff --git a/product/ERP5Type/patches/Restricted.py b/product/ERP5Type/patches/Restricted.py index 76e32d2fb185eaf760fb62e9add550745f8ff8ad..b64b92ec69e0e551857169b3465fe69c2520ec05 100644 --- a/product/ERP5Type/patches/Restricted.py +++ b/product/ERP5Type/patches/Restricted.py @@ -178,3 +178,11 @@ allow_module('difflib') allow_module('hashlib') allow_module('time') allow_module('urlparse') + +ModuleSecurityInfo('os.path').declarePublic( +# Allow functions accessing neither file system nor environment. + 'abspath', 'basename', 'commonprefix', 'dirname', 'isabs', 'join', + 'normpath', 'split', 'splitext', +# Also allow some handy data properties. + 'sep', 'pardir', 'curdir', 'extsep', +)