Re: [Mailman-Users] bug in Mailman when accessing Private Archives

2005-02-17 Thread Chuq Von Rospach
On Feb 17, 2005, at 9:03 AM, Steve Burling wrote:
What the heck were they thinking when the designers of Python chose 
"amount of leading white space" to indicate block structure?  It seems 
absolutely guaranteed to cause problems such as this.

it's one of those things about python that you either love, or you 
hate. and it's very much a religious issue among geeks.

--
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&file=faq01.027.htp


Re: [Mailman-Users] bug in Mailman when accessing Private Archives

2005-02-17 Thread Steve Burling
--On February 16, 2005 6:32:57 PM -0500 John Dennis <[EMAIL PROTECTED]> 
wrote:

leading white space in python is significant
To which I reply:
As a completely off-topic question:
What the heck were they thinking when the designers of Python chose "amount 
of leading white space" to indicate block structure?  It seems absolutely 
guaranteed to cause problems such as this.

(Feel free to respond off-list.  I'm sincerely curious about this -- ever 
since I started looking at Python, this has bugged me.)

--
Steve Burling
University of Michigan, ICPSRVoice: +1 734 615.3779
330 Packard Street   FAX:   +1 734 647.8700
Ann Arbor, MI 48104-2910
--
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&file=faq01.027.htp


Re: [Mailman-Users] bug in Mailman when accessing Private Archives

2005-02-16 Thread John Dennis
Mark Sapiro wrote:
Christopher Adams wrote:
Traceback (most recent call last):
 File "/lists/scripts/driver", line 80, in run_main
   pkg = __import__('Mailman.Cgi', globals(), locals(), [scriptname])
 File "/lists/Mailman/Cgi/private.py", line 43
parts = path.split(SLASH)
^
SyntaxError: invalid syntax

The patch at http://www.list.org/CAN-2005-0202.txt has been appied to
private.py and it looks like it may not have been applied correctly.
There is an issue with this patch and older versions of Python, but
the above error doesn't look like that.
It is mostly likely incorrect white space at the beginning of the line, 
leading white space in python is significant, fix the the white space to 
match the correct indendation level.

Also some folks forgot the definition of SLASH at the top of the file, 
don't forget that or you'll discover a new problem, SLASH isn't defined
--
John Dennis <[EMAIL PROTECTED]>

--
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&file=faq01.027.htp


Re: [Mailman-Users] bug in Mailman when accessing Private Archives

2005-02-16 Thread Christopher Adams
Both answers mentioned a poor patch job. You are correct. Since I was 
unaware that the patch job had been done, I didn't know what to look 
for. I guess some text was simply pasted into the private.py file and it 
resulted in spaces rather than tabs. The intention was to manually do 
exactly what the automated patch job would supposedly do. I learn 
something new about Python every day.

Things are working again. Thanks.
Mark Sapiro wrote:
Christopher Adams wrote:
Traceback (most recent call last):
 File "/lists/scripts/driver", line 80, in run_main
   pkg = __import__('Mailman.Cgi', globals(), locals(), [scriptname])
 File "/lists/Mailman/Cgi/private.py", line 43
parts = path.split(SLASH)
^
SyntaxError: invalid syntax

The patch at http://www.list.org/CAN-2005-0202.txt has been appied to
private.py and it looks like it may not have been applied correctly.
There is an issue with this patch and older versions of Python, but
the above error doesn't look like that.
--
Mark Sapiro <[EMAIL PROTECTED]>   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan
--
Christopher Adams
Library Systems Analyst
Oregon State Library
503-378-4243 258
[EMAIL PROTECTED]
--
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&file=faq01.027.htp


Re: [Mailman-Users] bug in Mailman when accessing Private Archives

2005-02-16 Thread Mark Sapiro
Christopher Adams wrote:
>
>Traceback (most recent call last):
>   File "/lists/scripts/driver", line 80, in run_main
> pkg = __import__('Mailman.Cgi', globals(), locals(), [scriptname])
>   File "/lists/Mailman/Cgi/private.py", line 43
>  parts = path.split(SLASH)
>  ^
>  SyntaxError: invalid syntax

The patch at http://www.list.org/CAN-2005-0202.txt has been appied to
private.py and it looks like it may not have been applied correctly.
There is an issue with this patch and older versions of Python, but
the above error doesn't look like that.

--
Mark Sapiro <[EMAIL PROTECTED]>   The highway is for gamblers,
San Francisco Bay Area, Californiabetter 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&file=faq01.027.htp


Re: [Mailman-Users] bug in Mailman when accessing Private Archives

2005-02-16 Thread John Dennis
Christopher Adams wrote:
Has anyone seen this problem?

Bug in Mailman version 2.1.5
We're sorry, we hit a bug!
If you would like to help us identify the problem, please email a copy 
of this page to the webmaster for this site with a description of what 
happened. Thanks!

Traceback:
Traceback (most recent call last):
  File "/lists/scripts/driver", line 80, in run_main
pkg = __import__('Mailman.Cgi', globals(), locals(), [scriptname])
  File "/lists/Mailman/Cgi/private.py", line 43
 parts = path.split(SLASH)
 ^
 SyntaxError: invalid syntax
Looks like the CAN-2005-0202 patch was not applied correctly.
--
John Dennis <[EMAIL PROTECTED]>
--
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&file=faq01.027.htp


[Mailman-Users] bug in Mailman when accessing Private Archives

2005-02-16 Thread Christopher Adams
Has anyone seen this problem?

Bug in Mailman version 2.1.5
We're sorry, we hit a bug!
If you would like to help us identify the problem, please email a copy 
of this page to the webmaster for this site with a description of what 
happened. Thanks!

Traceback:
Traceback (most recent call last):
  File "/lists/scripts/driver", line 80, in run_main
pkg = __import__('Mailman.Cgi', globals(), locals(), [scriptname])
  File "/lists/Mailman/Cgi/private.py", line 43
 parts = path.split(SLASH)
 ^
 SyntaxError: invalid syntax
--
Christopher Adams
--
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&file=faq01.027.htp