|
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/middleware/ |
Upload File : |
�
r�\c @ sL d d l Z d d l m Z d d l m Z m Z d e f d � � YZ d S( i����N( t MiddlewareNotUsed( t
connectiont transactiont TransactionMiddlewarec B s2 e Z d Z d � Z d � Z d � Z d � Z RS( s"
Transaction middleware. If this is enabled, each view function will be run
with commit_on_response activated - that way a save() doesn't do a direct
commit, the commit is done when a successful response is created. If an
exception happens, the database is rolled back.
c C s0 t j d t d d �t j d r, t � n d S( Ns@ TransactionMiddleware is deprecated in favor of ATOMIC_REQUESTS.t
stackleveli t ATOMIC_REQUESTS( t warningst warnt PendingDeprecationWarningR t
settings_dictR ( t self( ( s? /tmp/pip-install-XxeQeY/django/django/middleware/transaction.pyt __init__ s
c C s t j � d S( s Enters transaction managementN( R t enter_transaction_management( R
t request( ( s? /tmp/pip-install-XxeQeY/django/django/middleware/transaction.pyt process_request s c C s'