[Checkins] SVN: zope.mimetype/trunk/s use zope.formlib instead of zope.app.form.browser for select widget

Jan-Wijbrand Kolman janwijbrand at gmail.com
Fri Jun 18 05:55:31 EDT 2010


Log message for revision 113613:
  use zope.formlib instead of zope.app.form.browser for select widget

Changed:
  U   zope.mimetype/trunk/setup.py
  U   zope.mimetype/trunk/src/zope/mimetype/widget.py
  U   zope.mimetype/trunk/src/zope/mimetype/widget.txt

-=-
Modified: zope.mimetype/trunk/setup.py
===================================================================
--- zope.mimetype/trunk/setup.py	2010-06-18 09:26:01 UTC (rev 113612)
+++ zope.mimetype/trunk/setup.py	2010-06-18 09:55:31 UTC (rev 113613)
@@ -78,13 +78,13 @@
       namespace_packages=['zope'],
       extras_require = dict(test=[]),
       install_requires=['setuptools',
-                        'zope.app.form',
                         'zope.browser',
                         'zope.browserresource',
                         'zope.component',
                         'zope.configuration',
                         'zope.contenttype>=3.5.0dev',
                         'zope.event',
+                        'zope.formlib>=4.0',
                         'zope.i18n',
                         'zope.i18nmessageid',
                         'zope.interface',

Modified: zope.mimetype/trunk/src/zope/mimetype/widget.py
===================================================================
--- zope.mimetype/trunk/src/zope/mimetype/widget.py	2010-06-18 09:26:01 UTC (rev 113612)
+++ zope.mimetype/trunk/src/zope/mimetype/widget.py	2010-06-18 09:55:31 UTC (rev 113613)
@@ -13,12 +13,12 @@
 __docformat__ = "reStructuredText"
 
 
-import zope.app.form.browser.source
+import zope.formlib.source
 import zope.i18n
 
 
 class TranslatableSourceSelectWidget(
-    zope.app.form.browser.source.SourceSelectWidget):
+    zope.formlib.source.SourceSelectWidget):
 
     def __init__(self, field, source, request):
         super(TranslatableSourceSelectWidget, self).__init__(

Modified: zope.mimetype/trunk/src/zope/mimetype/widget.txt
===================================================================
--- zope.mimetype/trunk/src/zope/mimetype/widget.txt	2010-06-18 09:26:01 UTC (rev 113612)
+++ zope.mimetype/trunk/src/zope/mimetype/widget.txt	2010-06-18 09:55:31 UTC (rev 113613)
@@ -6,7 +6,7 @@
 and sorts the choices.
 
 We will borrow the boring set up code from the SourceSelectWidget test
-(source.txt in zope.app.form.browser).
+(source.txt in zope.formlib).
 
     >>> import zope.interface
     >>> import zope.component
@@ -74,14 +74,14 @@
 Note that the options are ordered alphabetically.
 
 If the field is not required, we will also see a special choice labeled
-"(no value)" at the top of the list
+"(nothing selected)" at the top of the list
 
     >>> dog.required = False
     >>> print widget()
     <div>
     <div class="value">
     <select id="field.dog" name="field.dog" size="5" >
-    <option selected="selected" value="">(no value)</option>
+    <option selected="selected" value="">(nothing selected)</option>
     <option value="Ym93c2Vy">bowser</option>
     <option value="ZHVjaGVzcw==">duchess</option>
     <option value="bGFzc2ll">lassie</option>



More information about the checkins mailing list