diff --git a/docs/old_README.rst b/docs/old_README.rst index baea238..f2384f0 100644 --- a/docs/old_README.rst +++ b/docs/old_README.rst @@ -61,9 +61,12 @@ Specifically: takes two arguments. The first is the base object to be accessed, while the second is the attribute name or item index that will be read. The guard function should return the attribute or subitem, - or raise an exception. RestrictedPython ships with a default implementation - for ``_getattr_`` which prevents from using the format method of - strings as it is considered harmful. + or raise an exception. + RestrictedPython ships with a default implementation + for ``_getattr_`` which prevents the following actions: + + * accessing an attribute those name start with an underscore + * accessing the format method of strings as it is considered harmful. 4. ``__import__`` is the normal Python import hook, and should be used to control access to Python packages and modules. diff --git a/docs/usage/policy.rst b/docs/usage/policy.rst index 0708653..cc9c1b9 100644 --- a/docs/usage/policy.rst +++ b/docs/usage/policy.rst @@ -33,6 +33,7 @@ Guards RestrictedPython predefines several guarded access and manipulation methods: +* ``safer_getattr`` * ``guarded_setattr`` * ``guarded_delattr`` * ``guarded_iter_unpack_sequence``