[Zope] problems with URL passing again
here is a piece of code from article.html: centertable width=60%trtd bcenter*dtml-var pass_id*/center/b dtml-in "articles.objectValues()" dtml-var expr="id==pass_id" dtml-if expr="id == pass_id" pbdtml-var title/b dtml-var sequence-item/p /dtml-if /dtml-in /td/tr/table/center then i access it via http://localhost:8080/article.html?pass_id=validid and validid is a valid id of a dtml method in the articles folder. however, i get weird results: *validid* 0 0 which is weird because getting a 0 0 means that none of the ids matched. more weirdness? -- William Emmanuel S. Yu Ateneo Cervini-Eliazo Networks (ACENT) email : [EMAIL PROTECTED] web: http://cersa.admu.edu.ph/ phone : 63(2)4266001-5925/5904 today, n.: A nice place to visit, but you can't stay here for long. ___ 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] problems with URL passing again
On Mon, 29 Jan 2001, Horatio B. Bogbindero wrote: dtml-var expr="id==pass_id" dtml-if expr="id == pass_id" Sometimes id is not a string, but a function to call: id(). To force Zope renders it to string always write _['id']. Zope 2.3 has getId() that is always function. Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ 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] problems with URL passing again
dtml-var expr="id==pass_id" dtml-if expr="id == pass_id" Sometimes id is not a string, but a function to call: id(). To force Zope renders it to string always write _['id']. Zope 2.3 has getId() that is always function. a million thanks to you and may the gods bless you! hehehe. in other words, it worked! where is this feature/bug documented? -- William Emmanuel S. Yu Ateneo Cervini-Eliazo Networks (ACENT) email : [EMAIL PROTECTED] web: http://cersa.admu.edu.ph/ phone : 63(2)4266001-5925/5904 today, n.: A nice place to visit, but you can't stay here for long. ___ 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 )