🐛 Issue: Access to __interfaces and _get_interface() blocked by RestrictedPython defaults
Description
The documentation states that the list of interfaces can be accessed via the __interfaces variable. However, this variable is defined inside a RestrictedPython sandbox, whose default configuration blocks access to names starting with underscores.
As a result:
__interfaces is not accessible
_get_interface() is also blocked for the same reason
Question / Issue
How is the user supposed to access the value of __interfaces and the _get_interface() function under the default RestrictedPython configuration?
Is there:
- an alternative public API?
- a required sandbox configuration change?
- or a documentation update needed to clarify this?
🐛 Issue: Access to
__interfacesand_get_interface()blocked by RestrictedPython defaultsDescription
The documentation states that the list of interfaces can be accessed via the
__interfacesvariable. However, this variable is defined inside aRestrictedPythonsandbox, whose default configuration blocks access to names starting with underscores.As a result:
__interfacesis not accessible_get_interface()is also blocked for the same reasonQuestion / Issue
How is the user supposed to access the value of
__interfacesand the_get_interface()function under the defaultRestrictedPythonconfiguration?Is there: