[Zope] Problem with ZClasses
Mats Nordgren
mats@launchnet.com
Wed, 06 Oct 1999 09:14:57 -0700
Hi fellow zopers,
I'm following the ZClass tutorial that is in the Zope Dev Guide.
I make my CDProduct and then add the ZClass, I create the three
properties (title, artist, description) on a new propertysheet called
cd_info, I create a view called Properties and map it to the
propertysheet/cd_info/manage and then move it first on the list (before
the security view)
so far everything seems ok but now when i create the method index_html
<dtml-var standard_html_header>
<h1>CD</h1>
<p>Title: <dtml-var title></p>
<p>Artist: <dtml-var artist</p>
<p>Description: <dtml-var description>
<dtml-var standard_html_footer>
when i try to view the method i get an
Error Type: KeyError
Error Value: artist
Ok so i delete the artist entry in the code above and try to view it
again
Error Type: KeyError
Error Value: description
Alright.... so i delete the entry description and now it works i get my
CD
Artist:
What am I doing wrong... I'm following the instructions to the tee and
have tried it multiple times.
Anyone.... please help a lost soul.
Thanks in advance.
Mats Nordgren
mats@launchnet.com