[Mailman-Developers] Diff of subscribe.py

Marc Logemann mlogemann@morelogs.de
Wed, 29 Aug 2001 17:45:27 +0200


Hi,

a few days ago i mentioned a bug in subscribe.py, resulting in wrong
HTML output (i posted it in mailman-users...sorry for that).
There were allways some html lines, which do not come from
the template but from the script/binary itself. The extra lines were also
wrong in terms of HTML compliance.

I modified it, that from now on, the subscribe.py is doing the same way th=
an
listinfo.py, which has no problems regarding templates.

below a diff for subscribe.py in /cgi folder:

35c35
<     doc =3D Document()
---
>     doc =3D HeadlessDocument()
40c40
<         print doc.Format(bgcolor=3D"#ffffff")
---
>         print doc.Format()
49c49
<         print doc.Format(bgcolor=3D"#ffffff")
---
>         print doc.Format()
111c111
<             print doc.Format(bgcolor=3D"#ffffff")
---
>             print doc.Format()
121c121
<             print doc.Format(bgcolor=3D"#ffffff")
---
>             print doc.Format()
241c241
<     print doc.Format(bgcolor=3D"#ffffff")
---
>     print doc.Format()


Can we go on with this version? Or are there any drawbacks? From my point =
of view
this seems to work well for "standard" and "customized" subscription-resul=
ts
templates.



morelogs  |  Marc Logemann,  chief evangelist
____________________________________________________________
Rellinghauser Str. 332 =B7 D-45136 Essen =B7 Germany
T: +49 201 84 188-177 =B7 F: +49 201 84 188-199
mlogemann@morelogs.de =B7 http://www.morelogs.de