Renamed checkIsHostForProgram to checkIsHostForSponsor.
authorLennard de Rijk <ljvderijk@gmail.com>
Sun, 25 Jan 2009 22:42:09 +0000
changeset 996 a6f67d4c297f
parent 995 886c981fda2c
child 997 d4ba019f1f8b
Renamed checkIsHostForProgram to checkIsHostForSponsor. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed
app/soc/views/helper/access.py
app/soc/views/models/sponsor.py
--- a/app/soc/views/helper/access.py	Sun Jan 25 22:30:42 2009 +0000
+++ b/app/soc/views/helper/access.py	Sun Jan 25 22:42:09 2009 +0000
@@ -383,7 +383,7 @@
   raise out_of_band.LoginRequest(message_fmt=login_message_fmt)
 
 
-def checkIsHostForProgram(kwargs):
+def checkIsHostForSponsor(kwargs):
   """Raises an alternate HTTP response if Google Account has no Host entity
      for the specified Sponsor.
 
--- a/app/soc/views/models/sponsor.py	Sun Jan 25 22:30:42 2009 +0000
+++ b/app/soc/views/models/sponsor.py	Sun Jan 25 22:42:09 2009 +0000
@@ -48,10 +48,10 @@
 
     rights = {}
     rights['create'] = [access.checkIsDeveloper]
-    rights['edit'] = [access.checkIsHostForProgram]
+    rights['edit'] = [access.checkIsHostForSponsor]
     rights['delete'] = [access.checkIsDeveloper]
     rights['list'] = [access.checkIsDeveloper]
-    rights['list_requests'] = [access.checkIsHostForProgram]
+    rights['list_requests'] = [access.checkIsHostForSponsor]
 
     new_params = {}
     new_params['logic'] = soc.logic.models.sponsor.logic