[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mailman-developers
Subject:    Re: [Mailman-Developers] return 401 for bad password?
From:       Mark Sapiro <mark () msapiro ! net>
Date:       2010-01-30 2:22:42
Message-ID: 4B6397F2.2000508 () msapiro ! net
[Download RAW message or body]

Mark Sapiro wrote:


> and append
> 
> print '401 Unauthorized\n'
> 
> to make it
> 
> if msg:
> msg = FontAttr(msg, color='#ff0000', size='+1').Format()
> print '401 Unauthorized\n'


Actually, that's wrong on two counts. It should be 'Status: 401
Unauthorized' and there should be no newline as print provides one, so
make it

    if msg:
        msg = FontAttr(msg, color='#ff0000', size='+1').Format()
        print 'Status: 401 Unauthorized'


> This is entirely untested, but should work for both failed admin and
> admindb logins.


And it's still untested.

-- 
Mark Sapiro <mark@msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

_______________________________________________
Mailman-Developers mailing list
Mailman-Developers@python.org
http://mail.python.org/mailman/listinfo/mailman-developers
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-developers%40python.org/
Unsubscribe: http://mail.python.org/mailman/options/mailman-developers/mailman-developers%40progressive-comp.com


Security Policy: http://wiki.list.org/x/QIA9


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic