Back to index

moin  1.9.0~rc2
Public Member Functions
MoinMoin.support.werkzeug.test._TestCookieJar Class Reference
Inheritance diagram for MoinMoin.support.werkzeug.test._TestCookieJar:
Inheritance graph
[legend]
Collaboration diagram for MoinMoin.support.werkzeug.test._TestCookieJar:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def inject_wsgi
def extract_wsgi

Detailed Description

A cookielib.CookieJar modified to inject and read cookie headers from
and to wsgi environments, and wsgi application responses.

Definition at line 142 of file test.py.


Member Function Documentation

def MoinMoin.support.werkzeug.test._TestCookieJar.extract_wsgi (   self,
  environ,
  headers 
)
Extract the server's set-cookie headers as cookies into the
cookie jar.

Definition at line 157 of file test.py.

00157 
00158     def extract_wsgi(self, environ, headers):
00159         """Extract the server's set-cookie headers as cookies into the
00160         cookie jar.
00161         """
00162         self.extract_cookies(
00163             _TestCookieResponse(headers),
00164             U2Request(get_current_url(environ)),
00165         )
00166 

Here is the call graph for this function:

Inject the cookies as client headers into the server's wsgi
environment.

Definition at line 147 of file test.py.

00147 
00148     def inject_wsgi(self, environ):
00149         """Inject the cookies as client headers into the server's wsgi
00150         environment.
00151         """
00152         cvals = []
00153         for cookie in self:
00154             cvals.append('%s=%s' % (cookie.name, cookie.value))
00155         if cvals:
00156             environ['HTTP_COOKIE'] = ','.join(cvals)


The documentation for this class was generated from the following file: