diff options
| author | ianb <devnull@localhost> | 2007-04-26 22:03:02 +0000 |
|---|---|---|
| committer | ianb <devnull@localhost> | 2007-04-26 22:03:02 +0000 |
| commit | 260f3173670f03cc2102240e7a37ee28883e7fbb (patch) | |
| tree | 34c70a3271e6c022e6f08aff34645c51da1c72d2 | |
| parent | 4dbbe180211d65e48aeac8bf65b27600d4f51eca (diff) | |
| download | paste-260f3173670f03cc2102240e7a37ee28883e7fbb.tar.gz | |
Add __call__ to StackedObjectProxy. For cmlenz
| -rw-r--r-- | docs/news.txt | 2 | ||||
| -rw-r--r-- | paste/registry.py | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/docs/news.txt b/docs/news.txt index 40b980b..228bc9d 100644 --- a/docs/news.txt +++ b/docs/news.txt @@ -42,6 +42,8 @@ svn trunk missing Content-Length as 0, not unlimited (may have caused freeze ups for some kinds of requests before). +* ``StackedObjectProxy`` supports ``__call__``. + 1.3 --- diff --git a/paste/registry.py b/paste/registry.py index 41c1d8f..0bf56dc 100644 --- a/paste/registry.py +++ b/paste/registry.py @@ -138,6 +138,9 @@ class StackedObjectProxy(object): def __delitem__(self, key): del self._current_obj()[key] + + def __call__(self, *args, **kw): + return self._current_obj()(*args, **kw) def __repr__(self): try: |
