[Mailman-Users] Mailman 2.1a2 bugs
Peter Lee
user1 at acosmo.com
Thu Oct 4 16:55:30 CEST 2001
(1) Edit html does not work because directory en does not exist:
Traceback (most recent call last):
File "/home/mailman/scripts/driver", line 96, in run_main
main()
File "/home/mailman/Mailman/Cgi/edithtml.py", line 119, in main
ChangeHTML(mlist, cgidata, template_name, doc)
File "/home/mailman/Mailman/Cgi/edithtml.py", line 156, in ChangeHTML
template_name), 'w')
IOError: [Errno 2] No such file or directory:
'/home/mailman/lists/testlist/en/subscribe.html'
Need to add something like
> # If the directory doesn't exist, create it
> ldir=os.path.join(mlist.fullpath(), mlist.preferred_language)
> try:
> os.stat(ldir)
> except os.error, errdata:
> errno, errmsg = errdata
> if errno != 2:
> raise os.error, errdata
> else:
> os.mkdir(ldir, 02775)
[
(2) At the end of Hold.py, lang used before set, need line marked #ADDED
if mlist.admin_immed_notify:
# Now let's temporarily set the language context to that which the
# admin is expecting.
otranslation = i18n.get_translation()
i18n.set_language(mlist.preferred_language)
lang = msgdata.get('lang', mlist.preferred_language) #ADDED
try:
# We need to regenerate or re-translate a few values in d
usersubject = msg.get('subject', _('(no subject)'))
d['reason'] = _(reason)
(3) List info page to User Options page does not work
Need this line in listinfo.py
replacements['<mm-options-form-start>'] =
mlist.FormatFormStart('options')
and in options.py need a section like below
def main():
doc = Document()
doc.set_language(mm_cfg.DEFAULT_SERVER_LANGUAGE)
cgidata = cgi.FieldStorage()
parts = Utils.GetPathPieces()
#ADDED
if not parts or len(parts) < 2:
if not cgidata.has_key("info"):
doc.AddItem(Header(2, "Error"))
doc.AddItem(Bold("You must supply your email address."))
doc.AddItem(MailmanLogo())
print doc.Format(bgcolor="#ffffff")
return
parts.append(cgidata['info'].value)
if not parts or len(parts) < 2:
(4) Several template files marked version 2.0 need to be updated. I did a
few of them, but forgot what I did. If you need them, I will take sometime
to dig out futher info.
Sincerely,
Peter
================================================
>>>>>>>> Visit http://www.acosmo.com <<<<<<<<<
More information about the Mailman-Users
mailing list