[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services - service.py:1.18
Marius Gedminas
mgedmin@codeworks.lt
Thu, 17 Apr 2003 06:17:23 -0400
Update of /cvs-repository/Zope3/src/zope/app/browser/services
In directory cvs.zope.org:/tmp/cvs-serv27058/src/zope/app/browser/services
Modified Files:
service.py
Log Message:
Using physical paths as URLs breaks virtual hosting. Fixed the bug in
ComponentAdding view and added a unit test.
=== Zope3/src/zope/app/browser/services/service.py 1.17 => 1.18 ===
--- Zope3/src/zope/app/browser/services/service.py:1.17 Sun Mar 23 17:03:27 2003
+++ Zope3/src/zope/app/browser/services/service.py Thu Apr 17 06:17:22 2003
@@ -45,12 +45,12 @@
self.added_object = ContextSuper(ComponentAdding, self).add(content)
return self.added_object
- def nextURL(self):
+ def nextURL(self):
v = queryView(self.added_object, "addConfiguration.html", self.request)
if v is not None:
- url = getPath(self.added_object)
+ url = str(getView(self.added_object, 'absolute_url', self.request))
return url + "/@@addConfiguration.html"
-
+
return ContextSuper(ComponentAdding, self).nextURL()
def action(self, type_name, id):