Add a way to view the last made request to the box (and sub box) objects.
See original GitHub issuefrom box import Box
class test(object):
def __init__(self, **kwargs):
d = Box({
'item':'value',
'item2': self.ok
})
self.d = d
def ok(self, **kwargs):
print "test"
print kwargs.keys()
for key in kwargs.keys():
print kwargs[key]
return
data={
'test':'value',
'test1':'value1'
}
t = test()
print t.d.item2(**data)
From t.d.item2 how do I get that path while in the ‘ok’ function.
Thanks!
Issue Analytics
- State:
- Created 6 years ago
- Comments:14 (7 by maintainers)
Top Results From Across the Web
Using Collections - Box Support
To view a collection: In the left sidebar, click the name of a collection. In the preview window, Box displays the names of...
Read more >Add a list box or combo box to a worksheet in Excel
Under Form Controls, click List box (Form Control). the list box form control button. Click the cell where you want to create the...
Read more >best custom sub box builders
Pre-Made & Custom Subwoofer Box Plans. RTX2060. Port Area: 15. 00 FREE shipping6. 5 million ($5. Add to Cart.
Read more >Item Modifiers in Square Online | Square Support Center - US
Text Box Label, Character Limit, and an option to make the field required. The label text is what customers will see on the...
Read more >How to Build a Subwoofer Box | KICKER®
The purpose of an enclosure is to improve bass response and prevent woofer damage from over-excursion. There are a few things you will...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Would usage like this fulfill your need? (Testing in
heritage
branch, names not final at all. Thinking of maybe.box_last_action
)Hi @chavenor, as an update with the new version of Box 4, it works in an entirely new method that doesn’t keep the hierarchy at all anymore, so this is no longer a realistic possibility.
If anyone else is interested in making something like this, it is probably easier to start from UserDict and apply it to that than with Box.