[Zope-CMF] Removing quotes from Contributors metadata
Rafael M. Pefianco
raffy at li-computerstudies.com
Tue Nov 4 20:53:06 EST 2003
Thanks a lot. Your tip worked just fine. The code I used is below:
<div tal:define="items here/myfile/Contributors"
tal:condition="items">
<span tal:repeat="item items">
<p tal:content="item">id</p>
</span>
</div>
Rafael M. Pefianco
website - www.rmpconsultancy.com
email - raffy at rmpconsultancy.com
Makati, Philippines Office : (632) 813-7824
Fax (632) 812-0494
-----Original Message-----
From: zope-cmf-bounces at zope.org [mailto:zope-cmf-bounces at zope.org] On
Behalf Of J Cameron Cooper
Sent: Wednesday, November 05, 2003 3:59 AM
To: raffy at rmpconsultancy.com
Cc: zope-cmf at zope.org
Subject: Re: [Zope-CMF] Removing quotes from Contributors metadata
>I'm trying to use the metadata Contributors in CMF 1.4.2 and Zope
2.6.2.
>I used the following code to see the Contributors in my portal_catalog.
>The results I get are in parentheses and single quotes like
>('myContributor'). Is there a way to render the contributors metadata
>without the parentheses and single quotes?
>
>
Looks like it gives you a tuple of strings. Treat that as a list and
iterate over it with tal:repeat
--jcc
--
"Code generators follow the 80/20 rule. They solve most of the problems,
but not all of the problems. There are always features and edge cases
that will need hand-coding. Even if code generation could build 100
percent of the application, there will still be an endless supply of
boring meetings about feature design."
(http://www.devx.com/java/editorial/15511)
_______________________________________________
Zope-CMF maillist - Zope-CMF at zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf
See http://collector.zope.org/CMF for bug reports and feature requests
More information about the Zope-CMF
mailing list