[Zope3-checkins] CVS: Zope3/src/zope/app/browser/form - configure.zcml:1.24 widget.py:1.58

sree sree at mahiti.org
Wed Dec 17 05:21:18 EST 2003


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

Modified Files:
	configure.zcml widget.py 
Log Message:
add views for file, image, dtml document, template file
Also have added ASCII widget in replace ment for Bytes field..
ASCII for text areas
Bytes should now on be used only for File/Binary data...


=== Zope3/src/zope/app/browser/form/configure.zcml 1.23 => 1.24 ===
--- Zope3/src/zope/app/browser/form/configure.zcml:1.23	Fri Nov 21 12:12:19 2003
+++ Zope3/src/zope/app/browser/form/configure.zcml	Wed Dec 17 05:20:47 2003
@@ -54,6 +54,14 @@
       allowed_interface="zope.app.interfaces.browser.form.IBrowserWidget"
       for="zope.schema.interfaces.IBytes"
       name="edit"
+      class="zope.app.browser.form.widget.FileWidget"
+      />
+
+  <browser:page
+      permission="zope.Public"
+      allowed_interface="zope.app.interfaces.browser.form.IBrowserWidget"
+      for="zope.schema.interfaces.IASCII"
+      name="edit"
       class="zope.app.browser.form.widget.BytesAreaWidget"
       />
 


=== Zope3/src/zope/app/browser/form/widget.py 1.57 => 1.58 ===
--- Zope3/src/zope/app/browser/form/widget.py:1.57	Fri Nov 21 12:11:55 2003
+++ Zope3/src/zope/app/browser/form/widget.py	Wed Dec 17 05:20:47 2003
@@ -601,6 +601,15 @@
     'Bob'
 
     """
+class ASCII(Bytes):
+    """ ASCII
+    """
+
+class ASCIIWidget(BytesWidget):
+    """ASCII widget.
+
+    Single-line data (string) input
+    """
 
 class IntWidget(TextWidget):
     displayWidth = 10




More information about the Zope3-Checkins mailing list