Skip to content

Commit

Permalink
more docs consolidation
Browse files Browse the repository at this point in the history
  • Loading branch information
loechel committed Feb 4, 2017
1 parent 1e402f7 commit edd5682
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 45 deletions.
45 changes: 0 additions & 45 deletions docs/update_notes.rst

This file was deleted.

1 change: 1 addition & 0 deletions docs/usage/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ Usage of RestrictedPython
.. include:: api.rst
.. include:: basic_usage.rst
.. include:: framework_usage.rst
.. include:: policy.rst
13 changes: 13 additions & 0 deletions docs/usage/policy.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Policies & builtins
-------------------



Also RestrictedPython provides a way to define Policies, by redefining restricted versions of ``print``, ``getattr``, ``setattr``, ``import``, etc..
As shortcutes it offers three stripped down versions of Pythons ``__builtins__``:

* ``safe_builtins`` (by Guards.py)
* ``limited_builtins`` (by Limits.py), which provides restriced sequence types
* ``utilities_builtins`` (by Utilities.py), which provides access for standard modules math, random, string and for sets.

There is also a guard function for making attributes immutable --> ``full_write_guard`` (write and delete protected)

0 comments on commit edd5682

Please sign in to comment.