equal
deleted
inserted
replaced
41 |
41 |
42 super(Logic, self).__init__(model=model, base_model=base_model, |
42 super(Logic, self).__init__(model=model, base_model=base_model, |
43 scope_logic=scope_logic) |
43 scope_logic=scope_logic) |
44 |
44 |
45 def _onCreate(self, entity): |
45 def _onCreate(self, entity): |
46 """Marks the Club for this Club Admin as active it's state is new. |
46 """Marks the Club for this Club Admin as active it's status is new. |
47 """ |
47 """ |
48 |
48 |
49 club_entity = entity.scope |
49 club_entity = entity.scope |
50 |
50 |
51 if club_entity.state == 'new': |
51 if club_entity.status == 'new': |
52 # this club is new so mark as active |
52 # this club is new so mark as active |
53 fields = {'state' : 'active'} |
53 fields = {'status' : 'active'} |
54 club_logic.logic.updateEntityProperties(club_entity, fields) |
54 club_logic.logic.updateEntityProperties(club_entity, fields) |
55 |
55 |
56 # call super |
56 # call super |
57 super(Logic, self)._onCreate(entity) |
57 super(Logic, self)._onCreate(entity) |
58 |
58 |