[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
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 )
Re: [Zope] where are the pages stored?
btw, were does zope store the template pages and objects? i tried do look into the folders but i could not seem to find it. is there are a way of moving this document root to a different folder? Before Zope 2.3, they were in "lib/python/*/*.dtml". Since Zope 2.3, they are in "lib/python/*/dtml/". thanks for the information. i needed the information because i plan to CVS that portion of the site. we would not be using the actual web tool for generating our pages but we will be using vi and company. hehehe. thanks. also the reason why i have so many questions is because i could not find the zope documentation set in the zope source distribution. can someone point me out the distribution so that i can read the fine manual(RTFM) instead. thanks. Click on any "Help" button in the Zope management interface. i use this already, but it is a bit lacking. anyway, i found some good documentation in http://www.zope.org/Documentation/. thanks. -- William Emmanuel S. Yu Ateneo Cervini-Eliazo Networks (ACENT) email : [EMAIL PROTECTED] web: http://cersa.admu.edu.ph/ phone : 63(2)4266001-5925/5904 ... I want FORTY-TWO TRYNEL FLOATATION SYSTEMS installed within SIX AND A HALF HOURS!!! ___ 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] where are the pages stored?
thanks to all those who helped me the URL passing thing! this has definitely made my zope life better. btw, were does zope store the template pages and objects? i tried do look into the folders but i could not seem to find it. is there are a way of moving this document root to a different folder? also the reason why i have so many questions is because i could not find the zope documentation set in the zope source distribution. can someone point me out the distribution so that i can read the fine manual(RTFM) instead. thanks. -- William Emmanuel S. Yu Ateneo Cervini-Eliazo Networks (ACENT) email : [EMAIL PROTECTED] web: http://cersa.admu.edu.ph/ phone : 63(2)4266001-5925/5904 Standards are crucial. And the best thing about standards is: there are so many to choose from! ___ 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] sending variables/parameters via hyperlink
hello people, i am extremely new to zope. from the time i have sent this email i would have been 4 hours old as a zope newbie. i would just like to congratulate the people responsible for zope. like i said before, it is a content managers dream come true. anyway, i seem to have a thing i cannot do. we can pass variables/parameters via post in a webform. however, i would like to pass as variable/parameter via a hyperlink. in regular html i would be something like a href="newpage.htm?variablename=value"Sent value to newpage.htm/a i get this error: error start-o Error response Error code 400. Message: Bad Request. ---error endo is this expected behavior? if so what should i do so emulate something like this method of paramter/variable passing using anchors? thanks. -- William Emmanuel S. Yu Ateneo Cervini-Eliazo Networks (ACENT) email : [EMAIL PROTECTED] web: http://cersa.admu.edu.ph/ phone : 63(2)4266001-5925/5904 Democracy means simply the bludgeoning of the people by the people for the people. -- Oscar Wilde ___ 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 )