I have developed some applications in Google App Engine but sometimes I have problems to "translate" my rational database mind to datastore objects (most of the time because I don't want to use the Key as ID of the data.) So, if I populate a combo (or any other control) how can I distinguish the uniqueness of the data?
Now I'm reading the data and searching in the datastore, but that doesn't avoid collision when the data is duplicated.
I.e.:
Empresa().all().filter('empresa =',self.request.get("empresa"))