Improve inspection with `dir() for pecan.request and pecan.response`

This commit is contained in:
Ryan Petrello
2013-02-05 09:44:33 -05:00
parent 31177f2982
commit efa1a6cca7

View File

@@ -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()