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

sree sree at mahiti.org
Wed Dec 17 06:30:36 EST 2003


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

Modified Files:
	adding.py 
Log Message:
Add <hr> to the add default page...


=== Zope3/src/zope/app/browser/container/adding.py 1.36 => 1.37 ===
--- Zope3/src/zope/app/browser/container/adding.py:1.36	Wed Dec 17 06:22:03 2003
+++ Zope3/src/zope/app/browser/container/adding.py	Wed Dec 17 06:30:36 2003
@@ -90,13 +90,19 @@
         button_label = translation.translate(button_label,
                                              context=self.request)
         if IContainerNamesContainer.isImplementedBy(container):
-            return "<input type='submit' value='Refresh' i18n:attributes='value refresh-button'><input type='submit' name='UPDATE_SUBMIT' value='%s'>" \
+            return "<hr><input type='submit' value='Refresh'\
+            i18n:attributes='value refresh-button'> \
+            <input type='submit' name='UPDATE_SUBMIT' value='%s'>" \
                    % button_label
         else:
             contentName = self.contentName or ''
             return (
-              "<b>Name:<b>&nbsp;<input type='text' name='add_input_name' value='%s'><hr>" "<input type='submit' value='Refresh' i18n:attributes='value refresh-button' >&nbsp;&nbsp;<input type='submit' name='UPDATE_SUBMIT' value='%s'>"
-                    % ( contentName, button_label))
+               "<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))
 
     def publishTraverse(self, request, name):
         """See zope.app.interfaces.container.IAdding"""




More information about the Zope3-Checkins mailing list