Nuxeo mailing list archives
[CPS-devel] Products.CPSUtil.text.toAscii unauthorised
Winterflood, Jonathan
jonathan.winterflood at capgemini.com
Wed Apr 25 10:19:16 CEST 2007
Hi,
I'm trying to use CPSUtil.text.toAscii to process some text while ignoring accents (as per the list's suggestion).
However, I cannot do 'from Products.CPSUtil.text import toAscii' in my script: I always get "You are not allowed to access 'text' in this context"
Looking into text.py, I noticed there are no ModuleSecurityInfo declarations in it, and therefore I cannot use it in restricted code (unless I wrap it with ModuleSecurityInfo in my own module)
Is there a particular reason for not allowing this? I would expect this to be rather useful in restricted code, at least in countries that use accented characters daily :)
If not I guess I'll just do the wrapping.
Any thoughts?
TIA,
Jonathan
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nuxeo.com/pipermail/cps-devel/attachments/20070425/29bcbac3/attachment.htm
This list archive provided by Nuxeo, the
leaders of open source ECM.
Check out the Nuxeo 5 open source,
standards-based ECM project.