[Zope-dev] ZPatterns based CD example. Halfway there! Need help
Steve Alexander
steve@cat-box.net
Sat, 16 Sep 2000 23:10:44 +0100
James Johnson wrote:
> 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.
Add a SkinScript method to your Specialist, under the Data-PlugIns tab,
with something like this:
WITH self.propertysheets.get('cd_info') COMPUTE
artist=getProperty('artist'),
label=getProperty('label')
You can then write your ZClass index_html and use <dtml-var artist> or
&dtml-artist; where you want the artist, and similarly with label.
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net