Jobs#list should return a list of Job objects
The Jobs#list method currently returns a list of SIDs, I think it should return a list of Job objects instead.
Currently I have to wrap the Jobs object and override the method to do this:
[Job(self._jobs.service, sid) for sid in self._jobs.list()]
Would there be any down side to created a Job object instead?
Hey Nick - that's a great point, and something we're planning on changing.
Overall, we're not super happy with the way we did the object model in Python, especially around things like this. In the Java and JavaScript SDKs (currently under development, get in touch if you want access) we've done it differently, like you suggested.
I hope we'll have this fixed in the next couple of weeks.
Itay
Cool.
We're currently designing our framework to wrap everything SDK related so we can always change the behavior so it isn't too hard to fix :)
Please do let us know if you have any requests for the SDK, or places where you think we can improve on.
While I'm working I'll make sure to note any oddities and stuff I want to change :)
This change has now been checked into the feature/collections branch – Collection.list (and the corresponding callable, Collection.call) now returns a list of member entities instead of a list of member entity names, for all collections.
Once this has been code reviewed I will merge with develop.
This work has been merged into develop (some time ago).