app/soc/models/person.py
changeset 410 2af7f84f4fc7
parent 404 44223e50e1fc
equal deleted inserted replaced
409:9d24850db88f 410:2af7f84f4fc7
    40   all of these are optional (except for given_name, surname, and email).
    40   all of these are optional (except for given_name, surname, and email).
    41   Other details of a Person are kept "private" and are only provided to
    41   Other details of a Person are kept "private" and are only provided to
    42   other Persons in roles that "need to know" this information.  How these
    42   other Persons in roles that "need to know" this information.  How these
    43   fields are revealed is usually covered by Program terms of service.
    43   fields are revealed is usually covered by Program terms of service.
    44   """
    44   """
    45 
       
    46   KEY_FIELDS = ['user_ln']
       
    47 
       
    48   def _get_link_name(self):
       
    49     return self.user.link_name
       
    50 
       
    51   def _set_link_name(self, value):
       
    52     self.user.link_name = value
       
    53 
       
    54   user_ln = property(_get_link_name, _set_link_name)
       
    55 
    45 
    56   #: A required many:1 relationship that ties (possibly multiple
    46   #: A required many:1 relationship that ties (possibly multiple
    57   #: entities of) Person details to a unique User.  A Person cannot
    47   #: entities of) Person details to a unique User.  A Person cannot
    58   #: exist unassociated from a login identity and credentials.  The
    48   #: exist unassociated from a login identity and credentials.  The
    59   #: back-reference in the User model is a Query named 'persons'.
    49   #: back-reference in the User model is a Query named 'persons'.