[Zope-Checkins] CVS: Zope3/lib/python/Zope/Publisher - BaseRequest.py:1.1.2.23.4.3 IApplicationResponse.py:1.1.2.2
Stephan Richter
srichter@cbu.edu
Sun, 24 Mar 2002 13:35:19 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/Publisher
In directory cvs.zope.org:/tmp/cvs-serv15801
Modified Files:
Tag: Zope3-publisher-refactor-branch
BaseRequest.py IApplicationResponse.py
Log Message:
Continued refactoring:
- I think everything in ./HTTP and ./Browser is now refactored and I
created some interfaces to support that.
- Jim should probably look over at the refactoring again.
- Tests are still needed everywhere and the code in general is probably
horribly broken.
Note: This is being committed, so that other people (i.e. Jim) can also
keep working on this branch.
=== Zope3/lib/python/Zope/Publisher/BaseRequest.py 1.1.2.23.4.2 => 1.1.2.23.4.3 ===
#
-# Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
+# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
+# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
-# Version 1.1 (ZPL). A copy of the ZPL should accompany this distribution.
+# 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.
+# FOR A PARTICULAR PURPOSE
+#
##############################################################################
"""
@@ -195,7 +197,7 @@
def __len__(self):
'See Interface.Common.Mapping.IEnumerableMapping'
- return len(self._common) + len(self._other) + len(self._environ)
+ return len(self.keys())
def items(self):
'See Interface.Common.Mapping.IEnumerableMapping'
=== Zope3/lib/python/Zope/Publisher/IApplicationResponse.py 1.1.2.1 => 1.1.2.2 ===
def write(string):
- """Output a atring to the response body.
+ """Output a string to the response body.
"""