Since I've been working on a TodoMVC demo with gcloud-python, I've been discussing usability with @proppy and thinking it would useful to be able to put data from dictionary form into the datastore directly without instantiating an entity object -- something along the lines of:
dataset = datastore.get_dataset(foo, bar, baz)
dataset.put(('kind', 'root', 'kind', 1),{'name':anakin_skywalker, 'jedi': True, 'sith':True})
This feels more pythonic. As a side note, I'm not really sure why "save" "reload" and "delete" are entity level methods. One can imagine wanting similar entities across multiple datasets without having to instantiate a bunch of objects. Any thoughts on this?
Thanks!
Since I've been working on a TodoMVC demo with gcloud-python, I've been discussing usability with @proppy and thinking it would useful to be able to put data from dictionary form into the datastore directly without instantiating an entity object -- something along the lines of:
This feels more pythonic. As a side note, I'm not really sure why "save" "reload" and "delete" are entity level methods. One can imagine wanting similar entities across multiple datasets without having to instantiate a bunch of objects. Any thoughts on this?
Thanks!