Carter Braxton wrote:

>"Mark Sapiro" <[EMAIL PROTECTED]> wrote:
>> The problem is the non-substitution '%' characters in your template.
>
>Ouch, this is another one of those "D'oh!" moments! Should have seen that,
>thanks for pointing it out. Is there a way to escape the "%" sign to prevent
>substitution? (I'm not very familiar with Python, have been a C programmer
>for 25 years.)


As I tried to indicate in my first reply, you escape the % by doubling
it. I.e. A single % is an interpolation of some kind; a double %% is a
literal %.


>Also, I was wondering, what is the reason for using the hex
>code "%40" instead of "@" in the URLs provided to users?


It really isn't necessary to use %40 instead of @ in the user options
URL. Mailman uses Python's urllib.quote() function to insure that
various characters that can cause problems are represented as %xx
codes. The urllib.quote() function encodes most non-alphanumeric
characters although it is not necessary to do many of them.

In short, if you want to use @ rather than %40 in the user options URL
in your text, that shouldn't be a problem.

The following URL types all work to retrieve the options (or options
login) page for [EMAIL PROTECTED]

http://www.example.com/mailman/options/[EMAIL PROTECTED]

http://www.example.com/mailman/options/user%40example.com

http://www.example.com/mailman/options/user--at--example.com

-- 
Mark Sapiro <[EMAIL PROTECTED]>       The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

------------------------------------------------------
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&amp;file=faq01.027.htp

Reply via email to