[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services - service.py:1.12

Guido van Rossum guido@python.org
Thu, 13 Mar 2003 12:04:58 -0500


Update of /cvs-repository/Zope3/src/zope/app/browser/services
In directory cvs.zope.org:/tmp/cvs-serv17108

Modified Files:
	service.py 
Log Message:
Override nextURL in ConfigurationAdding so that it doesn't go to the
configuration manager's @@contents.html (which doesn't exist) but just
to its default URL.


=== Zope3/src/zope/app/browser/services/service.py 1.11 => 1.12 ===
--- Zope3/src/zope/app/browser/services/service.py:1.11	Tue Mar 11 11:10:50 2003
+++ Zope3/src/zope/app/browser/services/service.py	Thu Mar 13 12:04:57 2003
@@ -91,6 +91,9 @@
 
     menu_id = "add_configuration"
 
+    def nextURL(self):
+        return str(getView(self.context, "absolute_url", self.request))
+
 
 class EditConfiguration(BrowserView):
     """A view on a configuration manager, used by configurations.pt."""