app/soc/logic/models/club_admin.py
changeset 916 f18c0a56da8b
parent 802 95c534d02e39
child 944 5ea2bd9e3fa6
--- a/app/soc/logic/models/club_admin.py	Fri Jan 23 11:34:58 2009 +0000
+++ b/app/soc/logic/models/club_admin.py	Fri Jan 23 11:36:55 2009 +0000
@@ -19,9 +19,11 @@
 
 __authors__ = [
   '"Sverre Rabbelier" <sverre@rabbelier.nl>',
+  '"Lennard de Rijk" <ljvderijk@gmail.com>',
   ]
 
 
+from soc.logic.helper import request
 from soc.logic.models import role
 from soc.logic.models import club as club_logic
 
@@ -42,4 +44,11 @@
                                 scope_logic=scope_logic)
 
 
+  def _onCreate(self, entity):
+    """Will mark any outstanding requests for the new Club Admin as completly accepted.
+    """
+    # TODO(ljvderijk) apply this to all other role logics if this solution is accepted
+    request.completeRequestForRole(entity, 'club_admin')
+
+
 logic = Logic()