[TransWarp] Sorry: tut.pdf bug!
Eckhard Jost
e.jost at eckhardjost.de
Wed Sep 17 09:54:56 EDT 2003
Sorry the bug is in the following code:
from peak.api import binding
class Car:
passengers=binding.New(dict, attrName='passengers')
aCar=Car()
print aCar.passengers
Am Mittwoch, 17. September 2003 15:51 schrieb Eckhard Jost:
> In the tut.pdf on page 11:
>
> When I try the first Example...:
>
> from peak.api import binding
>
> class Car(binding.Component):
> passengers=binding.New(dict)
>
> aCar=Car()
> print aCar.passengers
>
> ... I got the following:
>
> Traceback (most recent call last):
> File "peak-test.py", line 3, in ?
> class Car:
> File "peak-test.py", line 4, in Car
> passengers=binding.New(dict, attrName='passengers')
> TypeError: New() got an unexpected keyword argument 'attrName'
>
>
> Greetings
> Eckhard
--
----------------------------------
Dipl.-Kfm. / M.R.F.
Eckhard Jost
Software Consultant
Hans-Böckler-Str. 37
55128 Mainz
Tel.: +49 6131 7206299
Fax.: +49 6131 7206446
Mobil: +49 151 11672965
Email: e.jost at eckhardjost.de
http://www.eckhardjost.de
----------------------------------
More information about the PEAK
mailing list