Add missing comment to checkIsMyEntity
authorSverre Rabbelier <srabbelier@gmail.com>
Tue, 24 Feb 2009 18:58:57 +0000
changeset 1481 0ccf92d073e8
parent 1480 d2d9087d712f
child 1482 5229a40d4792
Add missing comment to checkIsMyEntity Patch by: Sverre Rabbelier
app/soc/views/helper/access.py
--- a/app/soc/views/helper/access.py	Tue Feb 24 18:58:22 2009 +0000
+++ b/app/soc/views/helper/access.py	Tue Feb 24 18:58:57 2009 +0000
@@ -1126,6 +1126,11 @@
   def checkIsMyEntity(self, django_args, logic,
                       field_name='user', user=False):
     """Checks whether the entity belongs to the user.
+
+    Args:
+      logic: the logic that should be used to fetch the entity
+      field_name: the name of the field the entity uses to store it's owner
+      user: whether the entity stores the user's key name, or a reference
     """
 
     self.checkIsUser(django_args)