[Zope3-Users] Problem running examples from Zope3 book
Weiterhausen
Ulrich P. Klein
klein at ulrich-p-klein.de
Sun Mar 19 12:45:56 EST 2006
Rijgersberg, T.J. (Tom) wrote:
>
> Real troubles start with the code in paragraph 7.4 which adds a
> customized list input widget. The browser/widget.pt and
> browser/sequence.js files run fine when directly invoked from the
> browser. But when I run it from the Zope instance with the added
> browser/widget.py and changed browser/configure.zcml it doesn't work.
>
Although I'm not sure why, but the following changes help:
--- browser/widget.py.orig 2004-07-10 17:59:36.000000000 +0200
+++ browser/widget.py 2006-03-19 18:28:16.000000000 +0100
@@ -1,9 +1,9 @@
from zope.app import zapi
from zope.app.form.interfaces import IInputWidget
-from zope.app.form.browser.widget import SimpleInputWidget
+from zope.app.form.browser.sequencewidget import SequenceWidget
from zope.app.pagetemplate.viewpagetemplatefile import ViewPageTemplateFile
-class DynamicSequenceWidget(SimpleInputWidget):
+class DynamicSequenceWidget(SequenceWidget):
"""Widget for (simple) sequences that does not require the form to be
reloaded for every change."""
--
View this message in context: http://www.nabble.com/Problem-running-examples-from-Zope3-book-Weiterhausen-t1257485.html#a3482644
Sent from the Zope3 - users forum at Nabble.com.
More information about the Zope3-users
mailing list