Fix mistakes in docs and comments in logic/models/base.py.
Patch by: Pawel Solyga
Review by: to-be-reviewed
--- a/app/soc/logic/models/base.py Thu Oct 16 09:14:26 2008 +0000
+++ b/app/soc/logic/models/base.py Thu Oct 16 13:14:13 2008 +0000
@@ -83,7 +83,7 @@
* Entity for supplied fields
Raises:
- out_of_band.ErrorResponse if link name is not false, but no Sponsor entity
+ out_of_band.ErrorResponse if link name is not false, but no entity
with the supplied link name exists in the Datastore
"""
@@ -94,7 +94,7 @@
entity = self.getFromFields(**kwargs)
if entity:
- # a Sponsor exist for this link_name, so return that Sponsor entity
+ # an entity exist for this link_name, so return that entity
return entity
fields = []
@@ -187,7 +187,7 @@
entity = self._model.get_or_insert(key_name, **properties)
# there is no way to be sure if get_or_insert() returned a new entity or
- # got an existing one due to a race, so update with sponsor_properties anyway,
+ # got an existing one due to a race, so update with properties anyway,
# in a transaction
return self.updateModelProperties(entity, **properties)