diff -r 002d3141ff99 -r a0ee643fe832 app/soc/logic/models/program.py --- a/app/soc/logic/models/program.py Tue Jan 06 17:26:06 2009 +0000 +++ b/app/soc/logic/models/program.py Tue Jan 06 20:56:48 2009 +0000 @@ -19,6 +19,7 @@ __authors__ = [ '"Sverre Rabbelier" ', + '"Lennard de Rijk" ', ] @@ -39,6 +40,24 @@ super(Logic, self).__init__(model=model, base_model=base_model, scope_logic=scope_logic) + + def getKeyValues(self, entity): + """See base.Logic.getKeyNameValues. + """ + + return [entity.scope_path, entity.workflow, entity.link_id] + + def getKeyValuesFromFields(self, fields): + """See base.Logic.getKeyValuesFromFields. + """ + + return [fields['scope_path'], fields['workflow'], fields['link_id']] + + def getKeyFieldNames(self): + """See base.Logic.getKeyFieldNames. + """ + + return ['scope_path', 'workflow', 'link_id'] logic = Logic()