def serialize_unregistered(fullname, email):
 user = auth.get_user(email=email)
 if (user is None):
  serialized = {'fullname': fullname, 'id': None, 'registered': False, 'active': False, 'gravatar': gravatar(email, use_ssl=True, size=settings.PROFILE_IMAGE_MEDIUM), 'email': email}
 else:
  serialized = add_contributor_json(user)
  serialized['fullname'] = fullname
  serialized['email'] = email
 return serialized

def serialize_unregistered ( fullname , email ) : user = auth . get_user ( email = email ) if ( user is None ) : serialized = { 'fullname' : fullname , 'id' : None , 'registered' : False , 'active' : False , 'gravatar' : gravatar ( email , use_ssl = True , size = settings . PROFILE_IMAGE_MEDIUM ) , 'email' : email } else : serialized = add_contributor_json ( user ) serialized [ 'fullname' ] = fullname serialized [ 'email' ] = email return serialized
serializes an unregistered user .