Re: [Zope] Month number as string as variable
Hi, "Williamson, Aaron" wrote: > > Peter, > > Try this bit of mojo here: > > # actually, it schould be: > # to produce 'month_01' to 'month_12' > > > Regards Tino Wildenhain ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] Month number as string as variable
Peter, Try this bit of mojo here: --Aaron ___ Zope maillist - [EMAIL PROTECTED] 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 )
[Zope] Month number as string as variable
Dear All. What I want to do is display this months Poll. I have created three Polls ( from the Poll Product ), named month_06, month_07, month_08. I understand that I will have to use the getitem() function to "show" the Poll itself, but I don't know how to create the string "month_0X" ...returns (today) '08' Good! ...also returns (today) '08' Good! But I don't want to use the fmt when I display it. I'd like to have something like this: * this is where the problem lies. But this obviously, is bad syntax. (I have tried [] squared brackets as well) Best Regards, Peter ___ Zope maillist - [EMAIL PROTECTED] 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 )