We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I want to be able to create an arbitrary object as follows. Is this possible with your library?
flingyClass = 'Flingy' if something else 'FlingySomethingElse' flingy = Object(className=flingyClass) # and be able to query flingy.Query.all()
The text was updated successfully, but these errors were encountered:
Yes, using the Object.factory method:
Object.factory
from parse_rest.datatypes import Object flingyClass = "FlingySomethingElse" flingy = Object.factory(flingyClass) print flingy # <class 'parse_rest.datatypes.FlingySomethingElse'> print flingy.__name__ # FlingySomethingElse
You'll be able to use Query etc from that point on. You can see the code for that method here.
Sorry, something went wrong.
Awesome thanks!
No branches or pull requests
I want to be able to create an arbitrary object as follows. Is this possible with your library?
The text was updated successfully, but these errors were encountered: