That did not seem to work. --- tomc@evetcia.com wrote:
The DTML method (in this case 'encoding') must return a list. I have had trouble doing this before.
From my experience this will not work:
<dtml-return "['list', 'of', 'objects']">
because this seems to return a string that looks like a list, but not a true list.
I found the only way I could do this was:
<dtml-call "REQUEST.set('list',[])"> <dtml-call "list.append('values')"> ... <dtml-return list>
Tom
=> -----Original Message----- => From: zope-admin@zope.org [mailto:zope-admin@zope.org]On => Behalf Of Chris => Bruce => Sent: Friday, 20 July 2001 1:02 PM => To: zope@zope.org => Subject: [Zope] ZClass Slection Property Question => => => I have added a Selection property to a ZClass. But I can't => figure out => how to get the values to display. I inserted "encoding" as the value => and added a DTML Method called "encoding". Inside the dtml method, I => have: => => HTML => Plain Text => => But when I view the propertysheet, it says: => => No value for encoding. => => => Any ideas on what I am doing wrong? Additionally, is there a way to => populate a drop down box with a list of strings in a dtml method? => => => Thanks, => => => Chris => => __________________________________________________ => Do You Yahoo!? => Get personalized email addresses from Yahoo! Mail => http://personal.mail.yahoo.com/ => => _______________________________________________ => Zope maillist - Zope@zope.org => http://lists.zope.org/mailman/listinfo/zope => ** No cross posts or HTML encoding! ** => (Related lists - => http://lists.zope.org/mailman/listinfo/zope-announce => http://lists.zope.org/mailman/listinfo/zope-dev ) =>
__________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/