Any particular reason why you can't use Random.shuffle from a PythonScript? Or any other methods of a Random object. I'd like to propose that restricted python be allowed access to methods of random.Random. I know that I can write a product to add a security declaration to random.Random, but I'd like this to be enabled by default in Zope. -- Steve Alexander Software Engineer Cat-Box limited
Steve Alexander wrote:
Any particular reason why you can't use Random.shuffle from a PythonScript? Or any other methods of a Random object.
I'd like to propose that restricted python be allowed access to methods of random.Random.
I know that I can write a product to add a security declaration to random.Random, but I'd like this to be enabled by default in Zope.
Surprisingly enough, you can set the global random seed from restricted python. That doesn't sound right to me. <dtml-call "_.random.seed(42)"> -- Steve Alexander Software Engineer Cat-Box limited
participants (1)
-
Steve Alexander