summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarkmcclain <mark.mcclain@dreamhost.com>2013-02-05 07:02:00 -0800
committermarkmcclain <mark.mcclain@dreamhost.com>2013-02-05 07:02:00 -0800
commit9a242a64f7741899cc61bee081efba37d29c27cf (patch)
tree8eedf9f2b1050182910419e2c63bf98ac6ff3a21
parente7d7c26c8f0392ec1dd01ca1f06aee095e4298b4 (diff)
parentefa1a6cca76d53331edb13cc9e23c0cbb4d4777b (diff)
downloadpecan-9a242a64f7741899cc61bee081efba37d29c27cf.tar.gz
Merge pull request #178 from ryanpetrello/next
Improve inspection with ``dir()`` for ``pecan.request`` and ``pecan.response``
-rw-r--r--pecan/core.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pecan/core.py b/pecan/core.py
index 3f22d79..1005965 100644
--- a/pecan/core.py
+++ b/pecan/core.py
@@ -38,6 +38,11 @@ def proxy(key):
def __delattr__(self, attr):
obj = getattr(state, key)
return delattr(obj, attr)
+
+ def __dir__(self):
+ obj = getattr(state, key)
+ return dir(obj)
+
return ObjectProxy()