[Mailman-Users] Custom templates for each list

Dan Mick Dan.Mick at West.Sun.COM
Fri Dec 1 23:42:30 CET 2000


Make sure you download the raw patch from Sourceforge, and apply
it with patch.

Yes, Python relies on indentation, and the indentation isn't different;
it's just that one line uses spaces, and one line uses tabs, so when
the "+ " is added to the front of the line by the unified diff,
they end up looking different.

> I think I found my own solution. Apparently python relies on indentation?
> Anyway, look at the patch for that line (509 for Utils.py) and you'll see
> that that line is not indented properly--or at least doesn't match up to the
> line before or after. Fixing that indentation seemed to allow it to compile.
> 
> -joel
> 
> 
> > Thank you. When trying to make install after getting that patch, I get the
> > following output:
> >
> > Compiling /home/mailman/Mailman/SecurityManager.py ...
> > Compiling /home/mailman/Mailman/Utils.py ...
> > inconsistent dedent
> >   File "/home/mailman/Mailman/Utils.py", line 509
> >     fp = open(file)
> >                    ^
> > SyntaxError: invalid token
> > Compiling /home/mailman/Mailman/Version.py ...
> > Compiling /home/mailman/Mailman/__init__.py ...
> > Compiling /home/mailman/Mailman/aliases.py ...
> > Compiling /home/mailman/Mailman/htmlformat.py ...
> > Listing /home/mailman/Mailman/pythonlib ...
> > Compiling /home/mailman/Mailman/pythonlib/StringIO.py ...
> > Compiling /home/mailman/Mailman/pythonlib/__init__.py ...
> > Compiling /home/mailman/Mailman/pythonlib/cgi.py ...
> > Compiling /home/mailman/Mailman/pythonlib/nntplib.py ...
> > Compiling /home/mailman/Mailman/pythonlib/rfc822.py ...
> > Compiling /home/mailman/Mailman/pythonlib/smtplib.py ...
> > Compiling /home/mailman/Mailman/pythonlib/tempfile.py ...
> > Compiling /home/mailman/Mailman/versions.py ...
> > inconsistent dedent
> > Traceback (innermost last):
> >   File "bin/update", line 31, in ?
> >     from Mailman import Utils
> >   File "/home/mailman/Mailman/Utils.py", line 509
> >     fp = open(file)
> >
> > What's wrong?
> 
> 
> 
> 
> ------------------------------------------------------
> Mailman-Users maillist  -  Mailman-Users at python.org
> http://www.python.org/mailman/listinfo/mailman-users






More information about the Mailman-Users mailing list