app/soc/logic/models/request.py
changeset 676 c6433532ddff
parent 674 0158b11cbf6d
child 818 ddd102e82107
equal deleted inserted replaced
675:14958011dceb 676:c6433532ddff
    43 
    43 
    44   def getKeyValues(self, entity):
    44   def getKeyValues(self, entity):
    45     """See base.Logic.getKeyNameValues.
    45     """See base.Logic.getKeyNameValues.
    46     """
    46     """
    47 
    47 
    48     return [entity.role, entity.scope.link_id, entity.link_id]
    48     return [entity.scope.link_id, entity.role, entity.link_id]
    49 
    49 
    50   def getKeyValuesFromFields(self, fields):
    50   def getKeyValuesFromFields(self, fields):
    51     """See base.Logic.getKeyValuesFromFields.
    51     """See base.Logic.getKeyValuesFromFields.
    52     """
    52     """
    53 
    53 
    54     return [fields['role'], fields['scope_path'], fields['link_id']]
    54     return [fields['scope_path'], fields['role'], fields['link_id']]
    55 
    55 
    56   def getKeyFieldNames(self):
    56   def getKeyFieldNames(self):
    57     """See base.Logic.getKeyFieldNames.
    57     """See base.Logic.getKeyFieldNames.
    58     """
    58     """
    59 
    59 
    60     return ['role', 'scope_path', 'link_id']
    60     return ['scope_path', 'role', 'link_id']
    61   
    61   
    62   def _onCreate(self, entity):
    62   def _onCreate(self, entity):
    63     """Sends out a message notifying users about the new invite/request.
    63     """Sends out a message notifying users about the new invite/request.
    64     """
    64     """
    65     
    65