[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/uniqueid/browser/__init__.py Added a redirection to index.html in uniqueid view populate method.

Gintautas Miliauskas gintas at pov.lt
Fri Jun 11 07:11:08 EDT 2004


Log message for revision 25343:
Added a redirection to index.html in uniqueid view populate method.



-=-
Modified: Zope3/trunk/src/zope/app/uniqueid/browser/__init__.py
===================================================================
--- Zope3/trunk/src/zope/app/uniqueid/browser/__init__.py	2004-06-11 10:36:58 UTC (rev 25342)
+++ Zope3/trunk/src/zope/app/uniqueid/browser/__init__.py	2004-06-11 11:11:07 UTC (rev 25343)
@@ -25,8 +25,10 @@
         return len(trustedRemoveSecurityProxy(self.context).refs)
 
     def populate(self):
+        # XXX I think this should be moved to the functional test.
         self.context.register(zapi.traverse(self.context, "/"))
         self.context.register(zapi.traverse(self.context, "/++etc++site"))
+        self.request.response.redirect('index.html')
 
     def items(self):
         return [(uid, zapi.getPath(ref())) for uid, ref in self.context.items()]




More information about the Zope3-Checkins mailing list