[Zope3-checkins] CVS: Zope3/src/zope/publisher/interfaces - browser.py:1.1.2.4 http.py:1.1.2.4 vfs.py:1.1.2.4 xmlrpc.py:1.1.2.3
Tim Peters
tim.one@comcast.net
Tue, 24 Dec 2002 21:21:46 -0500
Update of /cvs-repository/Zope3/src/zope/publisher/interfaces
In directory cvs.zope.org:/tmp/cvs-serv19240/src/zope/publisher/interfaces
Modified Files:
Tag: NameGeddon-branch
browser.py http.py vfs.py xmlrpc.py
Log Message:
Whitespace normalization, via Python's Tools/scripts/reindent.py. The
files are fixed-points of that script now. Fixed a few cases where
code relied on significant trailing whitespace (ouch).
=== Zope3/src/zope/publisher/interfaces/browser.py 1.1.2.3 => 1.1.2.4 ===
--- Zope3/src/zope/publisher/interfaces/browser.py:1.1.2.3 Mon Dec 23 16:04:47 2002
+++ Zope3/src/zope/publisher/interfaces/browser.py Tue Dec 24 21:21:15 2002
@@ -2,14 +2,14 @@
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
-#
+#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
-#
+#
##############################################################################
"""
@@ -40,7 +40,7 @@
"""
def __getitem__(key):
- """Return Browser request data
+ """Return Browser request data
Request data sre retrieved from one of:
@@ -88,7 +88,7 @@
def getDefaultTraversal(request, ob):
"""Get the default published object for the request
-
+
Allows a default view to be added to traversal.
Returns (ob, steps_reversed).
"""
@@ -153,7 +153,7 @@
Normal usage is to return self for object and a default view name.
The publisher calls this method at the end of each traversal path. If
- a non-empty sequence of names is returned, the publisher will traverse
+ a non-empty sequence of names is returned, the publisher will traverse
those names and call browserDefault again at the end.
Note that if additional traversal steps are indicated (via a
=== Zope3/src/zope/publisher/interfaces/http.py 1.1.2.3 => 1.1.2.4 ===
--- Zope3/src/zope/publisher/interfaces/http.py:1.1.2.3 Mon Dec 23 16:04:47 2002
+++ Zope3/src/zope/publisher/interfaces/http.py Tue Dec 24 21:21:15 2002
@@ -2,14 +2,14 @@
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
-#
+#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
-#
+#
##############################################################################
"""HTTP-related publisher interfaces.
@@ -25,7 +25,7 @@
class IHTTPApplicationRequest(IApplicationRequest):
"""HTTP request data.
-
+
This object provides access to request data. This includes, the
input headers, server data, and cookies.
@@ -55,11 +55,11 @@
The request object may be used as a mapping object, in which case
values will be looked up in the order: environment variables,
- other variables, cookies, and special.
+ other variables, cookies, and special.
"""
def __getitem__(key):
- """Return HTTP request data
+ """Return HTTP request data
Request data sre retrieved from one of:
@@ -125,7 +125,7 @@
'request["URL2"]'. The notion is that this would be used in
path expressions, like 'request/URL/-2'.
""")
-
+
def getURL(level=0, path_only=0):
"""Return the published URL with level names removed from the end.
@@ -184,7 +184,7 @@
class IHTTPResponse(Interface):
"""An object representation of an HTTP response.
-
+
The Response type encapsulates all possible responses to HTTP
requests. Responses are normally created by the object publisher.
A published object may recieve the response object as an argument
@@ -225,13 +225,13 @@
The previous value is cleared. If the literal flag is true,
the case of the header name is preserved, otherwise
word-capitalization will be performed on the header name on
- output.
+ output.
"""
def addHeader(name, value):
"""Add an HTTP Header
-
+
Sets a new HTTP return header with the given value, while retaining
any previously set headers with the same name.
@@ -239,22 +239,22 @@
def getHeader(name, default=None):
- """Gets a header value
-
- Returns the value associated with a HTTP return header, or
- 'default' if no such header has been set in the response
- yet.
- """
+ """Gets a header value
+
+ Returns the value associated with a HTTP return header, or
+ 'default' if no such header has been set in the response
+ yet.
+ """
def getHeaders():
"""Returns a mapping of correctly-cased header names to values.
"""
-
+
def appendToCookie(name, value):
"""Append text to a cookie value
-
+
If a value for the cookie has previously been set, the new
value is appended to the old one separated by a colon.
"""
@@ -262,7 +262,7 @@
def expireCookie(name, **kw):
"""Causes an HTTP cookie to be removed from the browser
-
+
The response will include an HTTP header that will remove the cookie
corresponding to "name" on the client, if one exists. This is
accomplished by sending a new cookie with an expiration date
@@ -284,7 +284,7 @@
def appendToHeader(name, value, delimiter=","):
"""Appends a value to a header
-
+
Sets an HTTP return header "name" with value "value",
appending it following a comma if there was a previous value
set for the header.
=== Zope3/src/zope/publisher/interfaces/vfs.py 1.1.2.3 => 1.1.2.4 ===
--- Zope3/src/zope/publisher/interfaces/vfs.py:1.1.2.3 Mon Dec 23 16:23:48 2002
+++ Zope3/src/zope/publisher/interfaces/vfs.py Tue Dec 24 21:21:15 2002
@@ -1,15 +1,15 @@
##############################################################################
#
-# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
+# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
-#
+#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
-#
+#
##############################################################################
"""Virtual File System interfaces for the publisher.
@@ -60,7 +60,7 @@
"""
def stat():
- """This method should return the typical file stat information:
+ """This method should return the typical file stat information:
(mode, ino, dev, nlink, uid, gid, size, atime, mtime, ctime)
"""
@@ -110,7 +110,7 @@
def read(mode, outstream, start=0, end=-1):
"""Read the content of this object.
"""
-
+
def write(mode, instream, start=0):
"""Write data specified in instream to object.
"""
=== Zope3/src/zope/publisher/interfaces/xmlrpc.py 1.1.2.2 => 1.1.2.3 ===
--- Zope3/src/zope/publisher/interfaces/xmlrpc.py:1.1.2.2 Mon Dec 23 16:04:47 2002
+++ Zope3/src/zope/publisher/interfaces/xmlrpc.py Tue Dec 24 21:21:15 2002
@@ -2,14 +2,14 @@
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
-#
+#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
-#
+#
##############################################################################
"""Interfaces for the XMLRPC publisher.
@@ -37,7 +37,7 @@
def getDefaultTraversal(request, ob):
"""Get the default published object for the request
-
+
Allows a default view to be added to traversal.
Returns (ob, steps_reversed).
"""