[Checkins] SVN: z3c.formjs/trunk/ Update to latest package versions and get ready for release.

Stephan Richter srichter at gmail.com
Thu Jul 23 01:03:05 EDT 2009


Log message for revision 102106:
  Update to latest package versions and get ready for release.
  

Changed:
  _U  z3c.formjs/trunk/
  U   z3c.formjs/trunk/CHANGES.txt
  U   z3c.formjs/trunk/setup.py
  U   z3c.formjs/trunk/src/z3c/formjs/ajax.txt
  U   z3c.formjs/trunk/src/z3c/formjs/jqueryrenderer.txt
  U   z3c.formjs/trunk/src/z3c/formjs/jsaction.txt
  U   z3c.formjs/trunk/src/z3c/formjs/jsclientevent.txt
  U   z3c.formjs/trunk/src/z3c/formjs/jsswitch.txt
  U   z3c.formjs/trunk/src/z3c/formjs/jsvalidator.txt
  U   z3c.formjs/trunk/src/z3c/formjs/tests/test_doc.py

-=-

Property changes on: z3c.formjs/trunk
___________________________________________________________________
Modified: svn:ignore
   - bin
build
develop-eggs
dist
eggs
parts
.installed.cfg

   + bin
build
coverage
develop-eggs
dist
eggs
parts
.installed.cfg


Modified: z3c.formjs/trunk/CHANGES.txt
===================================================================
--- z3c.formjs/trunk/CHANGES.txt	2009-07-23 04:31:29 UTC (rev 102105)
+++ z3c.formjs/trunk/CHANGES.txt	2009-07-23 05:03:05 UTC (rev 102106)
@@ -2,16 +2,21 @@
 CHANGES
 =======
 
-Version 0.4.2 (unreleased)
+Version 0.5.0 (2009-07-23)
+--------------------------
 
-- Bug: Avoid ForbiddenAttribute in jsvalidator.MessageValidator.
+- Feature: Update to the latest package versions.
 
+- Bug: Avoid ``ForbiddenAttribute`` in ``jsvalidator.MessageValidator``.
+
+
 Version 0.4.1 (2008-12-16)
 --------------------------
 
 - Restructure: Use WeightOrderedViewletManager from zope.viewlet instead
   of z3c.viewlet, that removes additional egg requirement.
 
+
 Version 0.4.0 (2008-08-26)
 --------------------------
 

Modified: z3c.formjs/trunk/setup.py
===================================================================
--- z3c.formjs/trunk/setup.py	2009-07-23 04:31:29 UTC (rev 102105)
+++ z3c.formjs/trunk/setup.py	2009-07-23 05:03:05 UTC (rev 102106)
@@ -32,7 +32,7 @@
 
 setup (
     name='z3c.formjs',
-    version='0.4.2dev',
+    version='0.5.0',
     author = "Paul Carduner and the Zope Community",
     author_email = "zope-dev at zope.org",
     description = "Javascript integration into ``z3c.form``",
@@ -65,8 +65,19 @@
     package_dir = {'':'src'},
     namespace_packages = ['z3c'],
     extras_require = dict(
-        test = ['zope.testing', 'zope.app.testing', 'z3c.coverage'],
-        docs = ['Sphinx', 'z3c.recipe.sphinxdoc'],
+        test = [
+            'lxml',
+            'z3c.coverage',
+            'zope.container',
+            'zope.contenttype',
+            'zope.site',
+            'zope.testing',
+            'zope.app.testing',
+            ],
+        docs = [
+            'Sphinx',
+            'z3c.recipe.sphinxdoc',
+            ],
         ),
     install_requires = [
         'jquery.layer',
@@ -82,6 +93,5 @@
         'zope.traversing',
         'python-cjson',
         ],
-    dependency_links = ['http://download.zope.org/distribution'],
     zip_safe = False,
     )

Modified: z3c.formjs/trunk/src/z3c/formjs/ajax.txt
===================================================================
--- z3c.formjs/trunk/src/z3c/formjs/ajax.txt	2009-07-23 04:31:29 UTC (rev 102105)
+++ z3c.formjs/trunk/src/z3c/formjs/ajax.txt	2009-07-23 05:03:05 UTC (rev 102106)
@@ -166,7 +166,7 @@
 
 To show this we'll create some dummy objects.
 
-  >>> from zope.app.container.contained import Contained
+  >>> from zope.container.contained import Contained
   >>> class DummyObject(Contained):
   ...     def __init__(self, parent, name):
   ...         self.__parent__ = parent
@@ -205,4 +205,4 @@
   >>> form = MyForm()
   >>> form.__parent__ = context
   >>> form.prefix
-  'formcontextparent2'
\ No newline at end of file
+  'formcontextparent2'

Modified: z3c.formjs/trunk/src/z3c/formjs/jqueryrenderer.txt
===================================================================
--- z3c.formjs/trunk/src/z3c/formjs/jqueryrenderer.txt	2009-07-23 04:31:29 UTC (rev 102105)
+++ z3c.formjs/trunk/src/z3c/formjs/jqueryrenderer.txt	2009-07-23 05:03:05 UTC (rev 102106)
@@ -176,7 +176,7 @@
 
 So let's create a widget switcher instance:
 
-  >>> from zope.app.folder import rootFolder
+  >>> from zope.site.folder import rootFolder
   >>> root = rootFolder()
   >>> form = Form(root, request)
   >>> form.__name__ = 'form.html'

Modified: z3c.formjs/trunk/src/z3c/formjs/jsaction.txt
===================================================================
--- z3c.formjs/trunk/src/z3c/formjs/jsaction.txt	2009-07-23 04:31:29 UTC (rev 102105)
+++ z3c.formjs/trunk/src/z3c/formjs/jsaction.txt	2009-07-23 05:03:05 UTC (rev 102106)
@@ -246,7 +246,7 @@
 
 * Hook up the "provider" TALES expression type:
 
-  >>> from zope.app.pagetemplate.engine import TrustedEngine
+  >>> from zope.pagetemplate.engine import TrustedEngine
   >>> from zope.contentprovider import tales
   >>> TrustedEngine.registerType('provider', tales.TALESProviderExpression)
 
@@ -487,30 +487,41 @@
   <html>
     <head>
       <script type="text/javascript">
-        $(document).ready(function(){
-          $("#form-widgets-name").bind("change",
-              function(){alert("The Name was Changed!");});
-          $("#form-widgets-age").bind("click",
-              function(){alert("The Age was Clicked!");});
-        })
-      </script>
+  $(document).ready(function(){
+    $("#form-widgets-name").bind("change",
+                                 function(){alert("The Name was Changed!");});
+    $("#form-widgets-age").bind("click",
+                                function(){alert("The Age was Clicked!");});
+  })
+  </script>
     </head>
     <body>
+  <BLANKLINE>
+  <BLANKLINE>
       <form action=".">
         <div class="row">
           <label for="form-widgets-name">Name</label>
-          <input type="text" id="form-widgets-name" name="form.widgets.name"
-                 class="text-widget required textline-field" value="" />
-        </div>
+  <BLANKLINE>
+      <input id="form-widgets-name" name="form.widgets.name"
+             class="text-widget required textline-field"
+             value="" type="text" />
+  <BLANKLINE>
+  </div>
         <div class="row">
           <label for="form-widgets-age">Age</label>
-          <input type="text" id="form-widgets-age" name="form.widgets.age"
-                 class="text-widget required int-field" value="" />
-        </div>
+  <BLANKLINE>
+      <input id="form-widgets-age" name="form.widgets.age"
+             class="text-widget required int-field" value=""
+             type="text" />
+  <BLANKLINE>
+  </div>
         <div class="action">
-          <input type="submit" id="form-buttons-add" name="form.buttons.add"
-                 class="submit-widget button-field" value="Add" />
-        </div>
+  <BLANKLINE>
+  <input id="form-buttons-add" name="form.buttons.add"
+         class="submit-widget button-field" value="Add"
+         type="submit" />
+  <BLANKLINE>
+  </div>
       </form>
     </body>
   </html>

Modified: z3c.formjs/trunk/src/z3c/formjs/jsclientevent.txt
===================================================================
--- z3c.formjs/trunk/src/z3c/formjs/jsclientevent.txt	2009-07-23 04:31:29 UTC (rev 102105)
+++ z3c.formjs/trunk/src/z3c/formjs/jsclientevent.txt	2009-07-23 05:03:05 UTC (rev 102106)
@@ -201,7 +201,7 @@
 
   >>> caughtEvents = request.annotations[jsclientevent.CLIENT_EVENT_REQUEST_KEY]
   >>> caughtEvents
-  [<zope.app.event.objectevent.ObjectModifiedEvent object at ...>]
+  [<zope.lifecycleevent.ObjectModifiedEvent object at ...>]
   >>> event in caughtEvents
   True
 
@@ -280,14 +280,14 @@
   >>> form.update()
 
   >>> request.annotations[jsclientevent.CLIENT_EVENT_REQUEST_KEY]
-  [<zope.app.event.objectevent.ObjectModifiedEvent object at ...>]
+  [<zope.lifecycleevent.ObjectModifiedEvent object at ...>]
 
 More importantly, now our form knows about this event via the
 ``eventCalls`` property.  This property returns a list of all events
 for which there are registered listeners/renderers.
 
   >>> form.eventCalls
-  [<zope.app.event.objectevent.ObjectModifiedEvent object at ...>]
+  [<zope.lifecycleevent.ObjectModifiedEvent object at ...>]
 
 If there are no handlers for the thrown event, they do not appear in
 the list given by ``eventCalls``, even though they are still in the
@@ -296,11 +296,11 @@
   >>> from zope.component.interfaces import ObjectEvent
   >>> notify(ObjectEvent('foo'))
   >>> request.annotations[jsclientevent.CLIENT_EVENT_REQUEST_KEY]
-  [<zope.app.event.objectevent.ObjectModifiedEvent object at ...>,
-   <zope.app.event.objectevent.ObjectEvent object at ...>]
+  [<zope.lifecycleevent.ObjectModifiedEvent object at ...>,
+   <zope.component.interfaces.ObjectEvent object at ...>]
 
   >>> form.eventCalls
-  [<zope.app.event.objectevent.ObjectModifiedEvent object at ...>]
+  [<zope.lifecycleevent.ObjectModifiedEvent object at ...>]
 
 We can then call all the listeners/renderers for the events with
 handlers and get back the renderer javascript injection using the
@@ -308,7 +308,7 @@
 
   >>> print form.eventInjections
   alert("This event occured:
-         <zope.app.event.objectevent.ObjectModifiedEvent object at ...>");
+         <zope.lifecycleevent.ObjectModifiedEvent object at ...>");
 
 Note that it is up to the page that sent the (possibly) asynchronous
 http request to the form to properly handle the javascript injection

Modified: z3c.formjs/trunk/src/z3c/formjs/jsswitch.txt
===================================================================
--- z3c.formjs/trunk/src/z3c/formjs/jsswitch.txt	2009-07-23 04:31:29 UTC (rev 102105)
+++ z3c.formjs/trunk/src/z3c/formjs/jsswitch.txt	2009-07-23 05:03:05 UTC (rev 102106)
@@ -80,7 +80,7 @@
 
 * Hook up the "provider" TALES expression type:
 
-  >>> from zope.app.pagetemplate.engine import TrustedEngine
+  >>> from zope.pagetemplate.engine import TrustedEngine
   >>> from zope.contentprovider import tales
   >>> TrustedEngine.registerType('provider', tales.TALESProviderExpression)
 
@@ -184,12 +184,14 @@
   >>> showPerson.update()
 
   >>> print showPerson.getInputWidget(showPerson)
-  <input type="text" id="form-widgets-age"
+  <input id="form-widgets-age"
          name="form.widgets.age"
          class="text-widget required int-field"
+         value="27"
+         type="text"
          onblur="$.get('saveValue',
              function(msg){saveWidget(&quot;form-widgets-age&quot;, msg)} )"
-         value="27" />
+         />
 
 Once the editing is complete, the value gets saved:
 
@@ -234,9 +236,11 @@
   ...     }))
   >>> showPerson.update()
   >>> print showPerson.getInputWidget(showPerson)
-  <input type="text" id="form-widgets-age"
+  <input id="form-widgets-age"
          name="form.widgets.age"
          class="text-widget required int-field"
+         value="25"
+         type="text"
          onblur="$.get('saveValue',
                  function(msg){saveWidget(&quot;form-widgets-age&quot;, msg)} )"
-         value="25" />
+         />

Modified: z3c.formjs/trunk/src/z3c/formjs/jsvalidator.txt
===================================================================
--- z3c.formjs/trunk/src/z3c/formjs/jsvalidator.txt	2009-07-23 04:31:29 UTC (rev 102105)
+++ z3c.formjs/trunk/src/z3c/formjs/jsvalidator.txt	2009-07-23 05:03:05 UTC (rev 102106)
@@ -104,7 +104,7 @@
   >>> edit = AddressEditForm(None, request)
   >>> edit.update()
   >>> AJAXPlugin(edit).publishTraverse(None, 'validate')()
-  u'The system could not process the given value.'
+  u'The entered value is not a valid integer literal.'
 
 Of course, one cannot just traverse to any attribute in the form:
 

Modified: z3c.formjs/trunk/src/z3c/formjs/tests/test_doc.py
===================================================================
--- z3c.formjs/trunk/src/z3c/formjs/tests/test_doc.py	2009-07-23 04:31:29 UTC (rev 102105)
+++ z3c.formjs/trunk/src/z3c/formjs/tests/test_doc.py	2009-07-23 05:03:05 UTC (rev 102106)
@@ -23,7 +23,7 @@
 
 def tearDown(test):
     testing.tearDown(test)
-    from zope.app.pagetemplate import engine
+    from zope.pagetemplate import engine
     engine.TrustedEngine = engine._TrustedEngine()
 
 def test_suite():



More information about the Checkins mailing list