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

sree sree at mahiti.org
Wed Dec 17 07:15:39 EST 2003


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

Modified Files:
	adding.py 
Log Message:
Upfated adding unit tests...


=== Zope3/src/zope/app/browser/container/adding.py 1.37 => 1.38 ===
--- Zope3/src/zope/app/browser/container/adding.py:1.37	Wed Dec 17 06:30:36 2003
+++ Zope3/src/zope/app/browser/container/adding.py	Wed Dec 17 07:15:09 2003
@@ -85,24 +85,24 @@
         """To Render Add button with or without Inputbox"""
         container = self.context
         button_label = _('add-button', 'Add')
+        object_name = _('object-name','Object Name')
+        
         translation = zapi.getService(self.context,
                                       zapi.servicenames.Translation)
         button_label = translation.translate(button_label,
                                              context=self.request)
+        object_name = translation.translate(object_name,
+                                             context=self.request)
         if IContainerNamesContainer.isImplementedBy(container):
-            return "<hr><input type='submit' value='Refresh'\
-            i18n:attributes='value refresh-button'> \
-            <input type='submit' name='UPDATE_SUBMIT' value='%s'>" \
+            return " <input type='submit' name='UPDATE_SUBMIT' value='%s'>" \
                    % button_label
         else:
             contentName = self.contentName or ''
             return (
-               "<hr><input type='submit' value='Refresh' \
-               i18n:attributes='value refresh-button' >&nbsp;&nbsp; \
-               <input type='submit' name='UPDATE_SUBMIT' value='%s'>"
-               "&nbsp;&nbsp;<b>Object Name:<b>&nbsp;\
-<input type='text' name='add_input_name' value='%s'>"
-                    % (button_label, contentName))
+               "&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))
 
     def publishTraverse(self, request, name):
         """See zope.app.interfaces.container.IAdding"""




More information about the Zope3-Checkins mailing list