Skip to content

Issue: Access to __interfaces and _get_interface() blocked by RestrictedPython defaults #24

@xabru

Description

@xabru

🐛 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions