Improve inspection with `dir() for pecan.request and pecan.response`
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user