|
Server : Apache System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64 User : njnconst ( 1116) PHP Version : 8.4.18 Disable Function : NONE Directory : /lib64/python2.7/site-packages/django/views/generic/ |
Upload File : |
�
r�\c @ s d d l m Z d d l Z d d l m Z d d l m Z d d l m Z d d l m
Z
m Z d d l m
Z
d d l m Z d d l m Z e j d
� Z d e f d � � YZ d
e f d � � YZ d e f d � � YZ d e e e f d � � YZ d e f d � � YZ d S( i����( t unicode_literalsN( t update_wrapper( t http( t ImproperlyConfigured( t reverset NoReverseMatch( t TemplateResponse( t classonlymethod( t sixu django.requestt ContextMixinc B s e Z d Z d � Z RS( u}
A default context mixin that passes the keyword arguments received by
get_context_data as the template context.
c K s d | k r | | d <n | S( Nu view( ( t selft kwargs( ( s; /tmp/pip-install-XxeQeY/django/django/views/generic/base.pyt get_context_data s
( t __name__t
__module__t __doc__R ( ( ( s; /tmp/pip-install-XxeQeY/django/django/views/generic/base.pyR s t Viewc B sh e Z d Z d d d d d d d d g Z d � Z e d
� � Z d � Z d � Z d
� Z d � Z
RS( u}
Intentionally simple parent class for all views. Only implements
dispatch-by-method and simple sanity checking.
u getu postu putu patchu deleteu headu optionsu tracec K s4 x- t j | � D] \ } } t | | | � q Wd S( u|
Constructor. Called in the URLconf; can contain helpful extra
keyword arguments, and other things.
N( R t iteritemst setattr( R
R t keyt value( ( s; /tmp/pip-install-XxeQeY/django/django/views/generic/base.pyt __init__$ s c s� xd � D]\ } | � j k r8 t d | � j f � � n t � | � s t d � j | f � � q q W� � f d � } t | � d d �t | � j d d �| S( uB
Main entry point for a request-response process.
uU You tried to pass in the %s method name as a keyword argument to %s(). Don't do that.um %s() received an invalid keyword %r. as_view only accepts arguments that are already attributes of the class.c sh � � � } t | d � r: t | d � r: | j | _ n | | _ | | _ | | _ | j | | | � S( Nu getu head( t hasattrt gett headt requestt argsR t dispatch( R R R R
( t clst
initkwargs( s; /tmp/pip-install-XxeQeY/django/django/views/generic/base.pyt view>