-
Notifications
You must be signed in to change notification settings - Fork 33
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
Document ObjectRow for Plugins usage #287
Comments
It's a bit hard for me to give you very crisp advice because your use case is still slightly fuzzy for me, but in general I'd say:
return PluginResult({"a": "b"}) Then if you assign that object to __foo you can refer to __foo.a to get b. Does that help? I'll leave the issue open because there are still some gaps in documentation. |
I am a little confused, how would I return a different element each time? Can you explain the difference between ObjectRow and PluginResult? |
If you could write what you want as a Python program (not a plugin) that just prints out the values you want, then I could help you transform it into a plugin. |
#777 feature might meet your needs. |
We are trying to implement a more complex use case than the summation plugin: we need to return a collection of objects that have their sum of field field_1 equal to a certain amount and the sum of field field_2 equal to another amount.
I imagine this can be done using a plugin that returns ObjectRow like so, but this is not clear nor documented, has anyone done anything like that?
https://gist.github.com/edmondo1984/d3219e93edb38b987fd927f274162a85
The text was updated successfully, but these errors were encountered: