[Checkins] SVN: z3c.rest/trunk/ Get ready for another release.
Stephan Richter
srichter at cosmos.phy.tufts.edu
Mon Mar 3 16:09:13 EST 2008
Log message for revision 84447:
Get ready for another release.
Changed:
U z3c.rest/trunk/CHANGES.txt
U z3c.rest/trunk/setup.py
U z3c.rest/trunk/src/z3c/rest/testing.py
-=-
Modified: z3c.rest/trunk/CHANGES.txt
===================================================================
--- z3c.rest/trunk/CHANGES.txt 2008-03-03 16:18:46 UTC (rev 84446)
+++ z3c.rest/trunk/CHANGES.txt 2008-03-03 21:09:12 UTC (rev 84447)
@@ -2,9 +2,15 @@
CHANGES
=======
-Version 0.1.0 (2008-03-03)
---------------------------
+0.2.0 (2008-03-03)
+------------------
+- Feature: Made the HTTP caller pluggable for the REST client, allowing
+ request types other than ``RESTRequest``.
+
+0.1.0 (2008-03-03)
+------------------
+
- Initial Release
* Publisher hooks to build dedicated REST servers
Modified: z3c.rest/trunk/setup.py
===================================================================
--- z3c.rest/trunk/setup.py 2008-03-03 16:18:46 UTC (rev 84446)
+++ z3c.rest/trunk/setup.py 2008-03-03 21:09:12 UTC (rev 84447)
@@ -31,7 +31,7 @@
setup (
name='z3c.rest',
- version='0.2.0dev',
+ version='0.2.0',
author = "Stephan Richter and the Zope Community",
author_email = "zope3-dev at zope.org",
description = "A REST Framework for Zope 3 Applications",
Modified: z3c.rest/trunk/src/z3c/rest/testing.py
===================================================================
--- z3c.rest/trunk/src/z3c/rest/testing.py 2008-03-03 16:18:46 UTC (rev 84446)
+++ z3c.rest/trunk/src/z3c/rest/testing.py 2008-03-03 21:09:12 UTC (rev 84447)
@@ -32,6 +32,8 @@
class PublisherConnection(object):
+ callerFactory = RESTCaller
+
def __init__(self, server, port=None):
self._response = None
self.server = server
@@ -53,7 +55,7 @@
for hdr, value in headers.items():
request.append("%s: %s" % (hdr, value))
request_string = "\n".join(request) + "\n\n" + body
- self._response = RESTCaller()(
+ self._response = self.callerFactory()(
request_string, handle_errors=handleErrors)
def getresponse(self):
@@ -86,7 +88,7 @@
@apply
def handleErrors():
"""See zope.testbrowser.interfaces.IBrowser"""
- headerKey = 'X-zope-handle-errors'
+ headerKey = 'X-Zope-Handle-Errors'
def get(self):
return self.requestHeaders.get(headerKey, True)
More information about the Checkins
mailing list