# Path: userprofiles/contrib/accountverification/models.py
# class AccountVerification(models.Model):
#     ACTIVATED = 'ALREADY_ACTIVATED'
# 
#     user = models.ForeignKey(User, unique=True, verbose_name=_('User'))
#     activation_key = models.CharField(_('Activation key'), max_length=40)
# 
#     objects = AccountVerificationManager()
# 
#     def __unicode__(self):
#         return u'Account verification: %s' % self.user
# 
#     def activation_key_expired(self):
#         expiration_date = timedelta(days=up_settings.ACCOUNT_VERIFICATION_DAYS)
#         return (self.activation_key == self.ACTIVATED
#             or (self.user.date_joined + expiration_date <= timezone.now()))
#     activation_key_expired.boolean = True
# 
#     class Meta:
#         app_label = 'userprofiles'
#         verbose_name = _('Account verification')
#         verbose_name_plural = _('Account verifications')
# 
# Path: userprofiles/settings.py
# class Settings(object):
#     def __init__(self, **kwargs):
#     def __getattr__(self, key):
# def validate_settings():


from django.views.generic import TemplateView
from userprofiles.contrib.accountverification.models import AccountVerification
from userprofiles.settings import up_settings
# -*- coding: utf-8 -*-



class RegistrationActivateView(TemplateView):
    template_name = 'userprofiles/registration_activate.html'

    def get_context_data(self, **kwargs):

# Path: userprofiles/contrib/accountverification/models.py
# class AccountVerification(models.Model):
#     ACTIVATED = 'ALREADY_ACTIVATED'
# 
#     user = models.ForeignKey(User, unique=True, verbose_name=_('User'))
#     activation_key = models.CharField(_('Activation key'), max_length=40)
# 
#     objects = AccountVerificationManager()
# 
#     def __unicode__(self):
#         return u'Account verification: %s' % self.user
# 
#     def activation_key_expired(self):
#         expiration_date = timedelta(days=up_settings.ACCOUNT_VERIFICATION_DAYS)
#         return (self.activation_key == self.ACTIVATED
#             or (self.user.date_joined + expiration_date <= timezone.now()))
#     activation_key_expired.boolean = True
# 
#     class Meta:
#         app_label = 'userprofiles'
#         verbose_name = _('Account verification')
#         verbose_name_plural = _('Account verifications')
# 
# Path: userprofiles/settings.py
# class Settings(object):
#     def __init__(self, **kwargs):
#     def __getattr__(self, key):
# def validate_settings():


# Path: userprofiles/contrib/accountverification/views.py
from django.views.generic import TemplateView
from userprofiles.contrib.accountverification.models import AccountVerification
from userprofiles.settings import up_settings

# -*- coding: utf-8 -*-



class RegistrationActivateView(TemplateView):
    template_name = 'userprofiles/registration_activate.html'

    def get_context_data(self, **kwargs):

        activation_key = kwargs['activation_key'].lower()