Changed group_app logic to support scope_path.
Moved link_id only as keyvalues to club_app.
Patch by: Lennard de Rijk
Reviewed by: to-be-reviewed
--- a/app/soc/logic/models/club_app.py Fri Jan 30 11:16:48 2009 +0000
+++ b/app/soc/logic/models/club_app.py Fri Jan 30 11:30:43 2009 +0000
@@ -39,5 +39,23 @@
super(Logic, self).__init__(model=model, base_model=base_model)
+ def getKeyValues(self, entity):
+ """See base.Logic.getKeyNameValues.
+ """
+
+ return [entity.link_id]
+
+ def getKeyValuesFromFields(self, fields):
+ """See base.Logic.getKeyValuesFromFields.
+ """
+
+ return [fields['link_id']]
+
+ def getKeyFieldNames(self):
+ """See base.Logic.getKeyFieldNames.
+ """
+
+ return ['link_id']
+
logic = Logic()
--- a/app/soc/logic/models/group_app.py Fri Jan 30 11:16:48 2009 +0000
+++ b/app/soc/logic/models/group_app.py Fri Jan 30 11:30:43 2009 +0000
@@ -38,22 +38,4 @@
super(Logic, self).__init__(model=model, base_model=base_model)
- def getKeyValues(self, entity):
- """See base.Logic.getKeyNameValues.
- """
-
- return [entity.link_id]
-
- def getKeyValuesFromFields(self, fields):
- """See base.Logic.getKeyValuesFromFields.
- """
-
- return [fields['link_id']]
-
- def getKeyFieldNames(self):
- """See base.Logic.getKeyFieldNames.
- """
-
- return ['link_id']
-
logic = Logic()