def get_person_contact(user):
 if ((not user) or user.is_anonymous()):
  return AnonymousContact()
 defaults = {u'is_active': user.is_active, u'first_name': getattr(user, u'first_name', u''), u'last_name': getattr(user, u'last_name', u''), u'email': getattr(user, u'email', u'')}
 return PersonContact.objects.get_or_create(user=user, defaults=defaults)[0]

def get_person_contact ( user ) : if ( ( not user ) or user . is_anonymous ( ) ) : return AnonymousContact ( ) defaults = { u'is_active' : user . is_active , u'first_name' : getattr ( user , u'first_name' , u'' ) , u'last_name' : getattr ( user , u'last_name' , u'' ) , u'email' : getattr ( user , u'email' , u'' ) } return PersonContact . objects . get_or_create ( user = user , defaults = defaults ) [ 0 ]
get personcontact of given user .