[Zope3-checkins] CVS: Zope3/src/zope/app/browser/container - adding.py:1.39

sree sree at mahiti.org
Wed Dec 17 07:40:30 EST 2003


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

Modified Files:
	adding.py 
Log Message:
Test corrections


=== Zope3/src/zope/app/browser/container/adding.py 1.38 => 1.39 ===
--- Zope3/src/zope/app/browser/container/adding.py:1.38	Wed Dec 17 07:15:09 2003
+++ Zope3/src/zope/app/browser/container/adding.py	Wed Dec 17 07:40:29 2003
@@ -84,25 +84,25 @@
     def renderAddButton(self):
         """To Render Add button with or without Inputbox"""
         container = self.context
-        button_label = _('add-button', 'Add')
-        object_name = _('object-name','Object Name')
+        add_button_value = _('add-button', 'Add')
+        add_button_label = _('add-button-label','Object Name')
         
         translation = zapi.getService(self.context,
                                       zapi.servicenames.Translation)
-        button_label = translation.translate(button_label,
+        add_button_value = translation.translate(add_button_value,
                                              context=self.request)
-        object_name = translation.translate(object_name,
+        add_button_label = translation.translate(add_button_label,
                                              context=self.request)
         if IContainerNamesContainer.isImplementedBy(container):
             return " <input type='submit' name='UPDATE_SUBMIT' value='%s'>" \
-                   % button_label
+                   % add_button_value
         else:
             contentName = self.contentName or ''
             return (
                "&nbsp;&nbsp;<input type='submit' name='UPDATE_SUBMIT' value='%s'>"
                "&nbsp;&nbsp;<b>%s:<b>&nbsp;"
                "<input type='text' name='add_input_name' value='%s'>"
-                    % (button_label, object_name, contentName))
+                    % (add_button_value, add_button_label, contentName))
 
     def publishTraverse(self, request, name):
         """See zope.app.interfaces.container.IAdding"""




More information about the Zope3-Checkins mailing list