[Zope] Why it doesn't work?
Hello, i can't understand why this simple method is not working: dtml-var standard_html_header ID of this page:dtml-var idBR dtml-with QUERY_STRING New ID is:dtml-var idbr /dtml-with dtml-var standard_html_footer If i call this page with a query string "?variable" i expect to see the id of the object called... but it's not working! Thanks, Bruno __ Do You Yahoo!? Il tuo indirizzo gratis e per sempre @yahoo.it su http://mail.yahoo.it ___ 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] Why it doesn't work?
i can't understand why this simple method is not working: dtml-var standard_html_header ID of this page:dtml-var idBR dtml-with QUERY_STRING New ID is:dtml-var idbr /dtml-with dtml-var standard_html_footer If i call this page with a query string "?variable" i expect to see the id of the object called... but it's not working! It works very well if you change your dtml-with-line into dtml-with "_[QUERY_STRING]" or dtml-with "_.getitem(QUERY_STRING)" (I don't know the difference between both statements.) That means something like "give me the object with the name i've put into the variable QUERY_STRING". You can also use a shorter version which combines everything in one single python expression: dtml-var "_.getitem(QUERY_STRING).id" But be careful. There will be an error message if the QUERY_STRING is empty. martin. ___ 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 )