----- Original Message ----- From: "Kamal Hamzat" <[EMAIL PROTECTED]>
To: <zope@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
_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to