Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion kid's XML() and not well-formed issues.
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Olli  
View profile  
 More options Sep 11 2006, 2:46 pm
From: "Olli" <olliw...@gmail.com>
Date: Mon, 11 Sep 2006 18:46:24 -0000
Local: Mon, Sep 11 2006 2:46 pm
Subject: Re: kid's XML() and not well-formed issues.
Hi, Chris. I got another problem with HTMLSanitizer, that is, the
variable after filtering by HTMLSanitizer will can be use only once in
.html file. for example:

# in the .py file
content = 'This is a test.'
content = HTML(content).filter(HTMLSanitizer())
greeting = "Hello World!"

# And in the .html file
${greeting}
<span py:content="content">Content goes here</span>
${greeting}
<span py:content="content">Content goes here</span>

# The actually output
Hello World! This is a test.  Hello World!

# However, it should be..
Hello World! This is a test.  Hello World! This is a test.

I tested this with TurboGears. so is it normal?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.