<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.3790.2577" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN 
class=415281407-10032006>Hi,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=415281407-10032006></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=415281407-10032006>I'm a newbie to Zope 
and taking my first steps into this wonderful world by going through the book 
'Web Component Development with Zope 3' from Philipp von 
Weitershausen.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=415281407-10032006></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=415281407-10032006>Up to page 94 I have 
had little difficulties reproducing the examples. I'm using the downloaded 
example code as described in the book. I'm running Zope 3.2 on a Windows 2000 
machine with Python 2.4 installed. My browser is Mozilla Firefox 
1.5.0.1.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=415281407-10032006></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=415281407-10032006>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.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=415281407-10032006></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=415281407-10032006>Here is what 
happens: </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=415281407-10032006>I copied the 
downloaded code from the book to 
C:\Python24\Zope3InstanceWeitershausen\lib\python (this was successful for the 
previous examples)</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=415281407-10032006>I start Zope by: 
C:\Python24\Zope3InstanceWeitershausen\.\bin\runzope</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=415281407-10032006>I've made sure that 
C:\Python24\Zope3InstanceWeitershausen\lib\python is in my 
PYTHONPATH</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=415281407-10032006>I've deleted 
C:\Python24\Zope3InstanceWeitershausen\var\Data.fs manually to get rid off 
previous experiments</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=415281407-10032006>I start my browser 
and log on using <A 
href="http://localhost:8080/manage">http://localhost:8080/manage</A></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=415281407-10032006>It al looks fine and 
I have the Add - Recipe button</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=415281407-10032006>I click on Add 
Recipe and the screen goes blank displaying:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=415281407-10032006>Going back and 
looking up the error log I see:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=415281407-10032006></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=415281407-10032006>Traceback (innermost 
last):<BR>&nbsp; Module zope.publisher.publish, line 138, in 
publish<BR>&nbsp;&nbsp;&nbsp; result = publication.callObject(request, 
object)<BR>&nbsp; Module zope.app.publication.zopepublication, line 161, in 
callObject<BR>&nbsp;&nbsp;&nbsp; return mapply(ob, 
request.getPositionalArguments(), request)<BR>&nbsp; Module 
zope.publisher.publish, line 113, in mapply<BR>&nbsp;&nbsp;&nbsp; return 
debug_call(object, args)<BR>&nbsp;&nbsp; - __traceback_info__: &lt;bound method 
+.action of &lt;zope.app.publisher.browser.viewmeta.+ object at 
0x02E0EAB0&gt;&gt;<BR>&nbsp; Module zope.publisher.publish, line 119, in 
debug_call<BR>&nbsp;&nbsp;&nbsp; return object(*args)<BR>&nbsp; Module 
zope.app.container.browser.adding, line 128, in action<BR>&nbsp;&nbsp;&nbsp; 
name=view_name) is not None:<BR>&nbsp; Module zope.component, line 165, in 
queryMultiAdapter<BR>&nbsp;&nbsp;&nbsp; return 
sitemanager.queryMultiAdapter(objects, interface, name, default)<BR>&nbsp; 
Module zope.component.site, line 75, in queryMultiAdapter<BR>&nbsp;&nbsp;&nbsp; 
default)<BR>&nbsp; Module zope.interface.adapter, line 475, in 
queryMultiAdapter<BR>&nbsp;&nbsp;&nbsp; return factory(*objects)<BR>&nbsp; 
Module zope.app.form.browser.editview, line 64, in 
__init__<BR>&nbsp;&nbsp;&nbsp; self._setUpWidgets()<BR>&nbsp; Module 
zope.app.form.browser.add, line 49, in _setUpWidgets<BR>&nbsp;&nbsp;&nbsp; 
setUpWidgets(self, self.schema, IInputWidget, names=self.fieldNames)<BR>&nbsp; 
Module zope.app.form.utility, line 153, in setUpWidgets<BR>&nbsp;&nbsp;&nbsp; 
context=context)<BR>&nbsp; Module zope.app.form.utility, line 101, in 
setUpWidget<BR>&nbsp;&nbsp;&nbsp; widget = widget(field.bind(context), 
view.request)<BR>&nbsp; Module zope.app.form, line 120, in 
__call__<BR>&nbsp;&nbsp;&nbsp; return self._create(args)<BR>&nbsp; Module 
zope.app.form, line 102, in _create<BR>&nbsp;&nbsp;&nbsp; instance = 
self._widget_factory(*args)<BR>TypeError: __init__() takes exactly 3 arguments 
(4 given)</DIV></SPAN></FONT>
<DIV><FONT face=Arial size=2><SPAN 
class=415281407-10032006></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=415281407-10032006>As a newbie this is 
all too much for me. I've visited the books' website but there are no clues from 
the errata. I've tried to look into release notes to see if something changed in 
Zope 3.2 that explains it but no luck.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=415281407-10032006></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=415281407-10032006>Can anyone help me 
out? I've tried running other examples form the book past chapter 7 but they 
also fail probably to my same mistakes.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=415281407-10032006></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=415281407-10032006>Regards,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=415281407-10032006></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=415281407-10032006>Tom</SPAN></FONT></DIV>
<BR>
This e-mail and its contents are subject to the DISCLAIMER at http://www.tno.nl/disclaimer/email.html<BR>
</BODY></HTML>