[Zope] getting the keys:values in a propertyItems() object
Jonathan
dev101 at magma.ca
Thu Mar 6 21:46:15 EST 2008
----- Original Message -----
From: "Kamal Hamzat" <hamzat at dnetsystems.net>
To: <zope at zope.org>
Sent: Thursday, March 06, 2008 7:07 PM
Subject: [Zope] getting the keys:values in a propertyItems() object
Hi,I have this lines of dtml methods.<dtml-call "REQUEST.set('xx',
_.getitem('080211'))"><dtml-var "xx.propertyItems()">Which rendered these
Keys:Values below[('title', "The man Wants Refinery For Living"),
('lastEditDate', DateTime('2008/02/11 11:49:26.254 US/Eastern')),
('EpozDocumentTemplate', ''), ('author', 'By Chesal Chesal'), ('summary',
"He has directed that further investment in private refineries be targeted
at the axis which consumes 15 million litres of fuel per day, more than half
the country's total.")]
Please, how do I extract each key with its corresponding value. For example
title : The man Wants Refinery For Living.Thankskamal
</snip>
Yet another option:
<dtml-let xx=" _.getitem('080211')">
<dtml-var "xx.getProperty('title')">
</dtml-let>
Jonathan
More information about the Zope
mailing list