[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services/utility/tests - test_registered.py:1.3

Stephan Richter srichter at cosmos.phy.tufts.edu
Thu Aug 7 14:42:17 EDT 2003


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

Modified Files:
	test_registered.py 
Log Message:
Internationalized the rest of zope/app/browser.

I also took the chance to clean up some old code and remove a lot of cruft.
(This is the reason I decided to do it instead of letting a less 
experienced developer do it.)

I now consider I18n of the Zope core done. What does this mean to you?

1. All code you check into the CVS must be internationalized. That means:

   (a) Python and PT code must be properly tagged.

   (b) zope.pot must be updated. This can be done with::

       [zope/app/translation_files]$ python extract.py

       Note: You do not need to merge the new POT file with the catalogs.

2. Any code snippet that has no I18n is considered a bug! Therefore, please
   take care and do the I18n and make code so when you see missing spots.

Finally I would like to mention that some forms might experience some 
hickups, as I changed and moved around a lot of templates and was not able
to verify them all by hand. Please let me know, if something that used to 
work is not working anymore.


=== Zope3/src/zope/app/browser/services/utility/tests/test_registered.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/browser/services/utility/tests/test_registered.py:1.2	Sun Jun 22 10:02:04 2003
+++ Zope3/src/zope/app/browser/services/utility/tests/test_registered.py	Thu Aug  7 13:41:42 2003
@@ -78,6 +78,10 @@
             ]
 
 
+class UtilitiesView(Utilities, BrowserView):
+    """Adding BrowserView to Utilities; this is usually done by ZCML."""
+
+
 class RegisteredTest(placelesssetup.PlacelessSetup, unittest.TestCase):
 
     def test_utility(self):
@@ -87,7 +91,7 @@
                     StubAbsoluteURL)
         utilityservice = StubLocalUtilityService()
         request = TestRequest()
-        utilities = Utilities(utilityservice, request)
+        utilities = UtilitiesView(utilityservice, request)
         ifname1 = __name__ + ".IFoo"
         ifname2 = __name__ + ".IBar"
         def confurl(ifname, name):




More information about the Zope3-Checkins mailing list