[Zope] Another Structure Problem
Hi; I can work around this one, but it's not as elegant and will waste an hour or so. Here's the problem I'd like to resolve. I have this line of code: a tal:attributes=href string:${here/renumberTheCart/absolute_url}?doc=${here/CheckOutAfterEditStuff}test/a The problem is that doc comes back with all the special characters in ASCII: a href=http://203.223.152.46:8080/lariman.com/s/renumberTheCart?doc=lt;divgt;lt;input type=quot;hiddenquot; name=quot;redirect_cmdquot; value=quot;_cartquot;gt; etc. Is there a way to work around this? TIA, Tony AOL now offers free email to everyone. Find out more about what's free from AOL at AOL.com. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Another Structure Problem
[EMAIL PROTECTED] wrote: a href=http://203.223.152.46:8080/lariman.com/s/renumberTheCart?doc=lt;divgt;lt;input type=quot;hiddenquot; name=quot;redirect_cmdquot; value=quot;_cartquot;gt; etc. Is there a way to work around this? Of course not, you don't need url quoting, that would be silly ;-) Chris PS: Why on *earth* you're passing around lumps of html in parameters anyway is *totally* beyond me... -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Another Structure Problem
--On 15. August 2007 12:48:06 -0400 [EMAIL PROTECTED] wrote: Hi; I can work around this one, but it's not as elegant and will waste an hour or so. Here's the problem I'd like to resolve. I have this line of code: a tal:attributes=href string:${here/renumberTheCart/absolute_url}?doc=${here/CheckOutAfterEditS tuff}test/a The problem is that doc comes back with all the special characters in ASCII: a href=http://203.223.152.46:8080/lariman.com/s/renumberTheCart?doc=lt;di vgt;lt;input type=quot;hiddenquot; name=quot;redirect_cmdquot; value=quot;_cartquot;gt; Yes, fix your code. Passing around HTML snippets through URLs just bad-style. Otherwise look at the url_quote/url_quote_plus() methods as mentioned some mails earlier. -aj pgpF6Sjvzoc47.pgp Description: PGP signature ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Another Structure Problem
Well, the other fellow said url_quote was well documented, but I haven't found out where :) Since you strongly imply I need url quoting, can you tell me how to url_quote this doc parameter? a tal:attributes=href string:${here/renumberTheCart/absolute_url}?doc=${here/CheckOutAfterEditStuff} Yes, it's sloppy, but I'm trying to resolve one problem at a time. Once it's working, I'll make it cleaner ;) TIA, Tony -Original Message- From: Chris Withers [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: zope@zope.org Sent: Wed, 15 Aug 2007 12:54 pm Subject: Re: [Zope] Another Structure Problem [EMAIL PROTECTED] wrote:? a href=http://203.223.152.46:8080/lariman.com/s/renumberTheCart?doc=divinput type=quot;hiddenquot; name=quot;redirect_cmdquot; value=quot;_cartquot;? etc. Is there a way to work around this?? ? Of course not, you don't need url quoting, that would be silly ;-)? ? Chris? ? PS: Why on *earth* you're passing around lumps of html in parameters anyway is *totally* beyond me...? ? -- Simplistix - Content Management, Zope Python Consulting? ? - http://www.simplistix.co.uk? AOL now offers free email to everyone. Find out more about what's free from AOL at AOL.com. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Another Structure Problem
Perhaps you put the name of a template as doc and in this template render the html code you want to render (like in this example a hidden input) Only an idea... 2007/8/15, [EMAIL PROTECTED] [EMAIL PROTECTED]: Well, the other fellow said url_quote was well documented, but I haven't found out where :) Since you strongly imply I need url quoting, can you tell me how to url_quote this doc parameter? a tal:attributes=href string:${here/renumberTheCart/absolute_url}?doc=${here/CheckOutAfterEditStuff} Yes, it's sloppy, but I'm trying to resolve one problem at a time. Once it's working, I'll make it cleaner ;) TIA, Tony -Original Message- From: Chris Withers [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: zope@zope.org Sent: Wed, 15 Aug 2007 12:54 pm Subject: Re: [Zope] Another Structure Problem [EMAIL PROTECTED] wrote: a href= http://203.223.152.46:8080/lariman.com/s/renumberTheCart?doc=divinputhttp://203.223.152.46:8080/lariman.com/s/renumberTheCart?doc=+%3Cdiv%3E%3Cinputtype=quot;hiddenquot; name=quot;redirect_cmdquot; value=quot;_cartquot; etc. Is there a way to work around this? Of course not, you don't need url quoting, that would be silly ;-) Chris PS: Why on *earth* you're passing around lumps of html in parameters anyway is *totally* beyond me... -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk -- AOL now offers free email to everyone. Find out more about what's free from AOL at *AOL.com* http://www.aol.com?ncid=AOLAOF0002000437. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) -- Mis Cosas http://blogs.sistes.net/Garito ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )