diff options
| author | Chris McDonough <chrism@plope.com> | 2011-08-14 00:53:53 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2011-08-14 00:53:53 -0400 |
| commit | 5c52daef7004a1e43a7c2fc25613e3d92c4b6b8e (patch) | |
| tree | 63e3b5b77f7904799bff1029de7804a62f7e973e /docs/api | |
| parent | 5396466b819692ae0d1ea2b78e6df6093545963a (diff) | |
| download | pyramid-5c52daef7004a1e43a7c2fc25613e3d92c4b6b8e.tar.gz pyramid-5c52daef7004a1e43a7c2fc25613e3d92c4b6b8e.tar.bz2 pyramid-5c52daef7004a1e43a7c2fc25613e3d92c4b6b8e.zip | |
- Added the ``pyramid.interfaces.IDict`` interface representing the methods
of a dictionary, for documentation purposes only (IMultiDict and
IBeforeRender inherit from it).
- Previously the ``pyramid.events.BeforeRender`` event *wrapped* a dictionary
(it addressed it as its ``_system`` attribute). Now it *is* a dictionary
(it inherits from ``dict``), and it's the value that is passed to templates
as a top-level dictionary.
Diffstat (limited to 'docs/api')
| -rw-r--r-- | docs/api/events.rst | 9 | ||||
| -rw-r--r-- | docs/api/interfaces.rst | 3 |
2 files changed, 12 insertions, 0 deletions
diff --git a/docs/api/events.rst b/docs/api/events.rst index 59657a820..31a0e22c1 100644 --- a/docs/api/events.rst +++ b/docs/api/events.rst @@ -25,6 +25,15 @@ Event Types .. autoclass:: BeforeRender :members: + :inherited-members: + :exclude-members: update + + .. method:: update(E, **F) + + Update D from dict/iterable E and F. If E has a .keys() method, does: + for k in E: D[k] = E[k] If E lacks .keys() method, does: for (k, v) in + E: D[k] = v. In either case, this is followed by: for k in F: D[k] = + F[k]. See :ref:`events_chapter` for more information about how to register code which subscribes to these events. diff --git a/docs/api/interfaces.rst b/docs/api/interfaces.rst index 9ab9eefc3..b336e549d 100644 --- a/docs/api/interfaces.rst +++ b/docs/api/interfaces.rst @@ -59,6 +59,9 @@ Other Interfaces .. autointerface:: IViewMapper :members: + .. autointerface:: IDict + :members: + .. autointerface:: IMultiDict :members: |
