app/soc/models/user.py
changeset 181 fdd29818a954
parent 161 f4af04306890
child 193 3d30a7a96ce7
equal deleted inserted replaced
180:a1c6123f9d06 181:fdd29818a954
    21   '"Sverre Rabbelier" <sverre@rabbelier.nl>',
    21   '"Sverre Rabbelier" <sverre@rabbelier.nl>',
    22   '"Pawel Solyga" <pawel.solyga@gmail.com>',
    22   '"Pawel Solyga" <pawel.solyga@gmail.com>',
    23 ]
    23 ]
    24 
    24 
    25 
    25 
    26 import logging
       
    27 
       
    28 from google.appengine.api import users
    26 from google.appengine.api import users
    29 from google.appengine.ext import db
    27 from google.appengine.ext import db
    30 
    28 
    31 from django.utils.translation import ugettext_lazy
    29 from django.utils.translation import ugettext_lazy
    32 
    30 
    33 from soc.models import base
    31 from soc.models import base
    34 from soc.views.helpers import forms_helpers
       
    35 
    32 
    36 
    33 
    37 class User(base.ModelWithFieldAttributes):
    34 class User(base.ModelWithFieldAttributes):
    38   """A user and associated login credentials, the fundamental identity entity.
    35   """A user and associated login credentials, the fundamental identity entity.
    39 
    36 
    48   as a db.ReferenceProperty elsewhere in another db.Model:
    45   as a db.ReferenceProperty elsewhere in another db.Model:
    49 
    46 
    50    persons)  a 1:many relationship of Person entities identified by the
    47    persons)  a 1:many relationship of Person entities identified by the
    51      User.  This relation is implemented as the 'persons' back-reference
    48      User.  This relation is implemented as the 'persons' back-reference
    52      Query of the Person model 'user' reference.
    49      Query of the Person model 'user' reference.
       
    50      
       
    51    documents)  a 1:many relationship of Document entities identified by the
       
    52      User.  This relation is implemented as the 'user' back-reference
       
    53      Query of the Document model 'user' reference.
    53 
    54 
    54   """
    55   """
    55 
    56 
    56   #: A Google Account, which also provides a "private" email address.
    57   #: A Google Account, which also provides a "private" email address.
    57   #: This email address is only used in an automated fashion by 
    58   #: This email address is only used in an automated fashion by