--- a/app/soc/logic/models/club_admin.py Thu Jan 29 15:53:35 2009 +0000
+++ b/app/soc/logic/models/club_admin.py Thu Jan 29 15:54:50 2009 +0000
@@ -42,5 +42,18 @@
super(Logic, self).__init__(model=model, base_model=base_model,
scope_logic=scope_logic)
+ def _onCreate(self, entity):
+ """Marks the Club for this Club Admin as active it's state is new.
+ """
+
+ club_entity = entity.scope
+
+ if club_entity.state == 'new':
+ # this club is new so mark as active
+ fields = {'state' : 'active'}
+ club_logic.logic.updateEntityProperties(club_entity, fields)
+
+ # call super
+ super(Logic, self)._onCreate(entity)
logic = Logic()