[Zope] Calling a DTML Document using a string
How can I do a dtml document call using the call dtml tag ? e.g. - I have 3 DTML documents ( bot1, bot2 and bot3) - I have in my request a int variable called varX - I would like do it, but this one doesn't work : ... dtml-var expr="bot + varX" ... Thanks a lot anderson ___ 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] Calling a DTML Document using a string
On Wednesday 24 January 2001 12:00, Anderson Ami wrote: How can I do a dtml document call using the call dtml tag ? e.g. - I have 3 DTML documents ( bot1, bot2 and bot3) - I have in my request a int variable called varX - I would like do it, but this one doesn't work : ... dtml-var expr="bot + varX" ... this might work dtml-var "_['bot'+_.str(varX)]" cheers kapil ___ 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] Calling a DTML Document using a string
- Original Message - From: "Anderson Ami" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 24, 2001 12:00 PM Subject: [Zope] Calling a DTML Document using a string How can I do a dtml document call using the call dtml tag ? e.g. - I have 3 DTML documents ( bot1, bot2 and bot3) - I have in my request a int variable called varX - I would like do it, but this one doesn't work : ... dtml-var expr="bot + varX" I think this will work. dtml-let doc=bot dtml-var "doc + _.str(varX)" /dtml-let The dtml-let call seems to render the 'bot' document. (I'm not very experienced with the dtml-let tag.) You need to convert varX to a string so you can concatenate the two strings together. Give that a try! --jfarr ___ 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] Calling a DTML Document using a string
Anderson Ami writes: How can I do a dtml document call using the call dtml tag ? e.g. - I have 3 DTML documents ( bot1, bot2 and bot3) - I have in my request a int variable called varX - I would like do it, but this one doesn't work : dtml-var expr="bot + varX" This is an FAQ: computed variable access: dtml-var expr="_['bot%d' % varX]" Dieter ___ 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] Calling a DTML Document using a string
Boy did I ever misunderstand the question. Dang. Sorry! Nevermind me! --jfarr - Original Message - From: "Dieter Maurer" [EMAIL PROTECTED] To: "Anderson Ami" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, January 24, 2001 1:50 PM Subject: Re: [Zope] Calling a DTML Document using a string Anderson Ami writes: How can I do a dtml document call using the call dtml tag ? e.g. - I have 3 DTML documents ( bot1, bot2 and bot3) - I have in my request a int variable called varX - I would like do it, but this one doesn't work : dtml-var expr="bot + varX" This is an FAQ: computed variable access: dtml-var expr="_['bot%d' % varX]" Dieter ___ 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 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 )