Alexander Loechel

Results 9 comments of Alexander Loechel

supersede #96 > Currently `_compile_restricted_mode` takes `flags` and `dont_inherit` as arguments but it does not pass them to `compile` (code has comment signs in front of) in case there is...

@ebagdasa as fas as I remember they are commented out, as we got problems / unpredicted results if we pass the current defaults. We should look more into that when...

I do not see any dependency on that for Plone. As much as I love the idea of having TTW Page Templates secured, I am not sure how many people...

It may be good for the discussion to talk about the affected API and options and common use cases and configurations. I think it should be differentiated between three major...

@icemac as we ported RestrictedPython the Interactive mode was not implemented. It could be easily done by adding a ``visit_Interactive`` to the `transformer.py`. Documentation for it: https://docs.python.org/3/library/ast.html#ast.Interactive ```python def visit_Interactive(self,...

@kuwv I could do a merge request and bring it into one of the next releases, if @icemac agrees. I guess, you @kuwv don't have signed the Zope Contributer Agreement,...

merge request created, after some more tests, I have seen, that the invocation is a bit different than asked for. ```python code = compile_restricted('x = 4 * 6', filename="", mode="single")...

@ScrambleRK and @d-maurer when I see it correctly the `SyntaxError` in https://github.com/zopefoundation/RestrictedPython/blob/master/src/RestrictedPython/compile.py#L211 is the only one that is raised by `RestrictedPython` itself. As it just lists all collected errors I...

@jsmith173 RestrictedPython itself offers several sets of builtins to use with, but you can always add additional elements for your specific use-case. Details: https://github.com/zopefoundation/RestrictedPython/blob/master/src/RestrictedPython/Guards.py#L14-L16 Just extend your globals to use...