[Zope-Checkins] CVS: Zope3/lib/python/Zope/Publisher - BaseResponse.py:1.1.2.8
Jim Fulton
jim@zope.com
Sun, 3 Feb 2002 18:43:48 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/Publisher
In directory cvs.zope.org:/tmp/cvs-serv9804
Modified Files:
Tag: Zope-3x-branch
BaseResponse.py
Log Message:
Kapil Thangavelu
Added (functioning;) set/getBase.
=== Zope3/lib/python/Zope/Publisher/BaseResponse.py 1.1.2.7 => 1.1.2.8 ===
status = None # The response status (usually an integer)
body = ''
+ base = None
#_auth=None
#_error_format='text/plain'
@@ -50,6 +51,14 @@
def setBody(self, body):
self.body = body
+ def setBase(self,base):
+ 'Sets the base URL for the returned document.'
+ self.base=base
+
+ def getBase(self):
+ ' return the base url '
+ return self.base
+
def getStatus(self):
'Returns the current HTTP status code as an integer. '
return self.status
@@ -119,5 +128,3 @@
traceback.print_exception(
exc_info[0], exc_info[1], exc_info[2], 100, self)
- def setBase(self, url):
- pass