# Path: minent/utils.py
# def normalize(text):
# def signature(text):
# def htmlize(text):
# def normalize_query(terms):
# def memoized(fget):
#     def fget_memoized(self):
#     def __init__(self, wall_clock=True):
#     def __enter__(self):
#     def __exit__(self, type, value, tb):
#     def __str__(self):
# def timeit(func, wall_clock=True):
#     def timer_wrapper(*args, **kwargs):
# def humanizedelta(*args, **kwargs):
# class Timer(object):


from django.db import models
from minent.utils import nullable
from urllib.parse import urlencode
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
# Author:   Benjamin Bengfort <bbengfort@districtdatalabs.com>
# Created:  Thu Jan 15 16:50:01 2015 -0500
#
# Copyright (C) 2016 District Data Labs
# For license information, see LICENSE.txt
#
# ID: models.py [70aac9d] benjamin@bengfort.com $

"""
Contains additional User profile data but no authentication
"""

##########################################################################
## Imports
##########################################################################



##########################################################################
## UserProfile model
##########################################################################


class Profile(models.Model):

    user         = models.OneToOneField(User, editable=False)
    email_hash   = models.CharField(max_length=32, editable=False)
    organization = models.CharField(max_length=255, **nullable)
    location     = models.CharField(max_length=255, **nullable)
    biography    = models.CharField(max_length=255, **nullable)

# Path: minent/utils.py
# def normalize(text):
# def signature(text):
# def htmlize(text):
# def normalize_query(terms):
# def memoized(fget):
#     def fget_memoized(self):
#     def __init__(self, wall_clock=True):
#     def __enter__(self):
#     def __exit__(self, type, value, tb):
#     def __str__(self):
# def timeit(func, wall_clock=True):
#     def timer_wrapper(*args, **kwargs):
# def humanizedelta(*args, **kwargs):
# class Timer(object):


# Path: users/models.py
from django.db import models
from minent.utils import nullable
from urllib.parse import urlencode
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse

# Author:   Benjamin Bengfort <bbengfort@districtdatalabs.com>
# Created:  Thu Jan 15 16:50:01 2015 -0500
#
# Copyright (C) 2016 District Data Labs
# For license information, see LICENSE.txt
#
# ID: models.py [70aac9d] benjamin@bengfort.com $

"""
Contains additional User profile data but no authentication
"""

##########################################################################
## Imports
##########################################################################



##########################################################################
## UserProfile model
##########################################################################


class Profile(models.Model):

    user         = models.OneToOneField(User, editable=False)
    email_hash   = models.CharField(max_length=32, editable=False)
    organization = models.CharField(max_length=255, **nullable)
    location     = models.CharField(max_length=255, **nullable)
    biography    = models.CharField(max_length=255, **nullable)

    biography    = models.TextField(help_text="Edit in Markdown", **nullable)