← Back
Editing: base.cpython-311.pyc
� 48zj� � � � d dl Z d dlmZ d dlmZ d dlmZmZmZm Z m Z d dlmZ d dl mZ d dlmZ d dlmZ e j d � � Z G d � d� � Z G d� d � � Z G d� d� � Z G d� deee� � Z G d� de� � ZdS )� N)�update_wrapper)�ImproperlyConfigured)�HttpResponse�HttpResponseGone�HttpResponseNotAllowed�HttpResponsePermanentRedirect�HttpResponseRedirect)�TemplateResponse)�reverse)�classonlymethod)�log_responsezdjango.requestc � � e Zd ZdZdZd� ZdS )�ContextMixinz A default context mixin that passes the keyword arguments received by get_context_data() as the template context. Nc �t � |� d| � � | j �|� | j � � |S )N�view)� setdefault� extra_context�update)�self�kwargss �;/usr/lib/python3/dist-packages/django/views/generic/base.py�get_context_datazContextMixin.get_context_data s; � ����&�$�'�'�'���)��M�M�$�,�-�-�-�� � )�__name__� __module__�__qualname__�__doc__r r � r r r r s4 � � � � � �� � �M�� � � � r r c �T � e Zd ZdZg d�Zd� Zed� � � Zd� Zd� Z d� Z d� Zd � Zd S )�Viewz} Intentionally simple parent class for all views. Only implements dispatch-by-method and simple sanity checking. )�get�post�put�patch�delete�head�options�tracec �\ � |� � � D ]\ }}t | ||� � �dS )z| Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things. N)�items�setattr)r r �key�values r �__init__z View.__init__'