1.1 --- a/WebStack/Twisted.py Sat Apr 24 17:01:26 2004 +0000
1.2 +++ b/WebStack/Twisted.py Sat Apr 24 20:33:31 2004 +0000
1.3 @@ -43,7 +43,8 @@
1.4 def get_headers(self):
1.5
1.6 """
1.7 - A framework-specific method which returns all request headers.
1.8 + A framework-specific method which returns all request headers as a
1.9 + dictionary-like object mapping header names to values.
1.10 NOTE: If duplicate header names are permitted, then this interface will
1.11 NOTE: need to change.
1.12 """
1.13 @@ -155,6 +156,8 @@
1.14 """
1.15 A framework-specific method which extracts user information from the
1.16 transaction.
1.17 +
1.18 + Returns a username as a string or None if no user is defined.
1.19 """
1.20
1.21 # NOTE: Twisted makes headers lower case, for some reason.
1.22 @@ -276,10 +279,12 @@
1.23 A framework-specific method which adds to the response a request that
1.24 the cookie with the given 'cookie_name' be deleted/discarded by the
1.25 client.
1.26 -
1.27 - NOTE: Not supported yet.
1.28 """
1.29
1.30 - pass
1.31 + # Create a special cookie, given that we do not know whether the browser
1.32 + # has been sent the cookie or not.
1.33 + # NOTE: Magic discovered in Webware.
1.34 +
1.35 + self.trans.addCookie(cookie_name, "", expires=0, path="/", max_age=0)
1.36
1.37 # vim: tabstop=4 expandtab shiftwidth=4