[Zope-dev] ZPatterns based CD example. Halfway there! Need help

James Johnson jimbo@tacoma.zzn.com
Sat, 16 Sep 2000 10:45:38 -0700


I've got the storage entry part down.  I can't seem to get the data 
out. It seems to me that I would put an Index_html method in the 
specialist but I get a aq_base error when trying to put one in. So I 
put it in my ZClass dataskin.  Here is the code I'm using below.
I tried to access it many ways. All I get is a blank sheet.
I tried using <dtml-let myPPS="propertysheets.get('cd_info')">
<dtml-var "myPPS.getProperty('artist')'>
But it says object does not have getProperty.
Hmm.

<dtml-var standard_html_header>

<h1>CD</h1>

<dtml-let newObj="CDManager.getItem('id')
          myPPS="newObj.propertysheets.get('cd_info')">

<p>



artist: <dtml-var getProperty(artist)>
description: <dtml-var myPPS.getProperty('description')>
genre: <dtml-var "myPPS.getProperty('genre')">
</p>
</dtml-let>

<dtml-var standard_html_footer>

Get your Free E-mail at http://tacoma.zzn.com
____________________________________________________________
Get your own Web-Based E-mail Service at http://www.zzn.com