U
    Öãæi  ã                   @   sL   d Z ddlmZ ddlmZ ddlmZ G dd„ deƒZG dd„ deƒZd	S )
z:
Views for legal pages (Privacy Policy, Terms of Service)
é    )ÚTemplateView)Úmethod_decorator)Ú
cache_pagec                       s<   e Zd ZdZdZ‡ fdd„Zeedƒƒ‡ fdd„ƒZ‡  Z	S )ÚPrivacyPolicyViewz]
    Privacy Policy page
    Cached for 24 hours (86400 seconds) to reduce database hits
    zlegal/privacy.htmlc                    s"   t ƒ jf |Ž}d|d< d|d< |S )NzPrivacy PolicyÚ
page_titlez+Privacy Policy for BMC Employee Utility AppÚmeta_description©ÚsuperÚget_context_data©ÚselfÚkwargsÚcontext©Ú	__class__© ú3/var/www/BmcWebsite/BMC-WEBSITE-DONE/legal/views.pyr
      s    z"PrivacyPolicyView.get_context_dataé€Q c                    s   t ƒ j||ŽS ©N©r	   Údispatch©r   Úargsr   r   r   r   r      s    zPrivacyPolicyView.dispatch©
Ú__name__Ú
__module__Ú__qualname__Ú__doc__Útemplate_namer
   r   r   r   Ú__classcell__r   r   r   r   r   
   s
   
r   c                       s<   e Zd ZdZdZ‡ fdd„Zeedƒƒ‡ fdd„ƒZ‡  Z	S )ÚTermsOfServiceViewz_
    Terms of Service page
    Cached for 24 hours (86400 seconds) to reduce database hits
    zlegal/terms.htmlc                    s"   t ƒ jf |Ž}d|d< d|d< |S )NzTerms of Servicer   z-Terms of Service for BMC Employee Utility Appr   r   r   r   r   r   r
   #   s    z#TermsOfServiceView.get_context_datar   c                    s   t ƒ j||ŽS r   r   r   r   r   r   r   )   s    zTermsOfServiceView.dispatchr   r   r   r   r   r       s
   
r    N)	r   Zdjango.views.genericr   Údjango.utils.decoratorsr   Údjango.views.decorators.cacher   r   r    r   r   r   r   Ú<module>   s
   