Re: [Zope-dev] Restricted Python not handling slices correctly

2008-06-10 Thread Stephan Richter
On Thursday 05 June 2008, Shane Hathaway wrote: Are you in fact using RestrictedPython?  The code snippet looks like it only uses a security proxy.  RestrictedPython is a custom Python compiler; you're not using it unless your interactive Python prompt uses RestrictedPython to compile all

Re: [Zope-dev] Restricted Python not handling slices correctly

2008-06-05 Thread Shane Hathaway
Stephan Richter wrote: Hi everyone, I am starting to use Restricted Python a lot and I found the following problem with slicing: from zope.security import checker l = [1, 2] l[-3:] [1, 2] lp = checker.ProxyFactory(l) lp[-3:] [2] The problem is that -3 gets converted to 1 somewhere, but