Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Oracle Object #23

Merged
merged 7 commits into from
Jan 18, 2019
Merged

Oracle Object #23

merged 7 commits into from
Jan 18, 2019

Conversation

rmorshea
Copy link
Owner

o = Oracle(
    a=Dict(
        x=Dict(
            y=1
        )
    )
)

@view(o)
def changed(events):
    for e in events:
        print(e)

o.a["x"].update(y=2, z=3)

Output:

{'key': 'y', 'old': 1, 'new': 2, 'location': ('a', 'x')}
{'key': 'z', 'old': Undefined, 'new': 3, 'location': ('a', 'x')}

@rmorshea rmorshea merged commit 99b16c4 into master Jan 18, 2019
@rmorshea rmorshea deleted the oracle-object branch February 11, 2019 05:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant