[Zope3-checkins] CVS: Zope3/src/zope/app/browser/container - metaconfigure.py:1.2

K.Narasimha Murthy nmurthy at zeomega.com
Thu Dec 18 06:41:18 EST 2003


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

Modified Files:
	metaconfigure.py 
Log Message:
modifyed metaconfig.py file to support i18n and test_directive.py.


=== Zope3/src/zope/app/browser/container/metaconfigure.py 1.1 => 1.2 ===
--- Zope3/src/zope/app/browser/container/metaconfigure.py:1.1	Thu Dec 18 05:26:35 2003
+++ Zope3/src/zope/app/browser/container/metaconfigure.py	Thu Dec 18 06:40:47 2003
@@ -18,6 +18,7 @@
 from zope.app.publisher.browser.viewmeta import page, view
 from zope.app.browser.container.contents import Contents
 from zope.app.browser.container.adding import Adding
+from zope.app.i18n import ZopeMessageIDFactory as _
 
 class IContainerViews(Interface):
     """Define a container views"""
@@ -53,17 +54,17 @@
             raise ValueError("A for interface must be specified.")
 
     if contents is not None:
-        page(_context=_context, name='contents.html', permission=contents,
+        page(_context, name='contents.html', permission=contents,
             for_=for_, class_=Contents, attribute='contents', menu='zmi_views',
-            title='Contents')
+            title=_('Contents'))
             
     if index is not None:
-        page(_context=_context, name='index.html', permission=index, for_=for_, 
+        page(_context, name='index.html', permission=index, for_=for_, 
             class_=Contents, attribute='contents')
 
     if add is not None:
         viewObj = view(_context, name='+', menu='zmi_actions',
-                       title='Add', for_=for_, permission=add, class_=Adding)
+                       title=_('Add'), for_=for_, permission=add, class_=Adding)
         viewObj.page(_context, name='index.html', attribute='index')
         viewObj.page(_context, name='action.html', attribute='action')
         viewObj()




More information about the Zope3-Checkins mailing list