# HG changeset patch # User Lennard de Rijk # Date 1233504238 0 # Node ID 5b5ce5056a2a39fbebb569ddd135267e1dd5e3ab # Parent 839da7617496f67a2d0f2cb1d3ceb5ba4b8d98e6 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 diff -r 839da7617496 -r 5b5ce5056a2a app/soc/logic/models/club_app.py --- 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. diff -r 839da7617496 -r 5b5ce5056a2a app/soc/logic/models/group_app.py --- 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()