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

Add better method for supplying not-yet-created handlers #9

Open
wagnerrp opened this issue Apr 1, 2012 · 0 comments
Open

Add better method for supplying not-yet-created handlers #9

wagnerrp opened this issue Apr 1, 2012 · 0 comments
Assignees
Labels

Comments

@wagnerrp
Copy link
Owner

wagnerrp commented Apr 1, 2012

The Datapoint definition allows a handler callable to be supplied, for which the data returned by queries is passed through. Due to the manner datapoints are defined, and Python's lack of prototypes, this handler must be fully defined in the namespace at the point the Datapoint is created. This leads to circular dependency issues where two classes must be defined before each other, such as the Studio class having a 'parent' attribute that back-references to itself during its own creation. Right now, this is worked around by using a lambda function, however that prevents the locale passthrough from happening properly.

@ghost ghost assigned wagnerrp Apr 1, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant