Changed group_app to use scope_logic in constructor.
This is so org_app logic can use a scope_logic.
Patch by: Lennard de Rijk
Reviewed by: to-be-reviewed
--- a/app/soc/logic/models/club_app.py Sun Feb 01 16:00:42 2009 +0000
+++ b/app/soc/logic/models/club_app.py Sun Feb 01 16:03:58 2009 +0000
@@ -33,11 +33,13 @@
"""
def __init__(self, model=soc.models.club_app.ClubApplication,
- base_model=soc.models.group_app.GroupApplication):
+ base_model=soc.models.group_app.GroupApplication,
+ scope_logic=None):
"""Defines the name, key_name and model for this entity.
"""
- super(Logic, self).__init__(model=model, base_model=base_model)
+ super(Logic, self).__init__(model=model, base_model=base_model,
+ scope_logic=scope_logic)
def getKeyValuesFromEntity(self, entity):
"""See base.Logic.getKeyNameValues.
--- a/app/soc/logic/models/group_app.py Sun Feb 01 16:00:42 2009 +0000
+++ b/app/soc/logic/models/group_app.py Sun Feb 01 16:03:58 2009 +0000
@@ -32,10 +32,11 @@
"""
def __init__(self, model=soc.models.group_app.GroupApplication,
- base_model=None):
+ base_model=None, scope_logic=None):
"""Defines the name, key_name and model for this entity.
"""
- super(Logic, self).__init__(model=model, base_model=base_model)
+ super(Logic, self).__init__(model=model, base_model=base_model,
+ scope_logic=scope_logic)
logic = Logic()