[Mailman-Developers]
[ mailman-Patches-651406 ] MM 2.0.13 to 2.1b5 upgrade fails
noreply at sourceforge.net
noreply at sourceforge.net
Tue Dec 10 04:38:03 EST 2002
Patches item #651406, was opened at 2002-12-10 12:38
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=300103&aid=651406&group_id=103
Category: None
Group: Mailman 2.1
Status: Open
Resolution: None
Priority: 5
Submitted By: Richard Barrett (ppsys)
Assigned to: Nobody/Anonymous (nobody)
Summary: MM 2.0.13 to 2.1b5 upgrade fails
Initial Comment:
make install when updating a MM 2.0.13 installation to
2.1b5 initally produced the following exception:
Updating mailing list: mailman
Traceback (most recent call last):
File "bin/update", line 569, in ?
errors = main()
File "bin/update", line 446, in main
errors = errors + dolist(listname)
File "bin/update", line 186, in dolist
mlist = MailList.MailList(listname, lock=0)
File "/mailman/run/Mailman/MailList.py", line 101, in
__init__
self.Load()
File "/mailman/run/Mailman/MailList.py", line 600, in
Load
self.CheckValues()
File "/mailman/run/Mailman/MailList.py", line 650, in
CheckValues
for name, pattern, desc, emptyflag in self.topics:
File "/mailman/run/Mailman/MailList.py", line 130, in
__getattr__
raise AttributeError, name
AttributeError: topics
make: *** [update] Error 1
Having corrected the cause of this first exception the
following exception was then encountered:
Upgrading from version 0x2000df0 to 0x20100b5
getting rid of old source files
Updating mailing list: mailman
Traceback (most recent call last):
File "bin/update", line 569, in ?
errors = main()
File "bin/update", line 446, in main
errors = errors + dolist(listname)
File "bin/update", line 200, in dolist
for addr, (reason, when) in mlist.delivery_status.items
():
File "/mailman/run/Mailman/MailList.py", line 130, in
__getattr__
raise AttributeError, name
AttributeError: delivery_status
make: *** [update] Error 1
These problems both seem to arise because of the
following:
1. The MailList class is derived from the classes
TopicMgr and Bouncer (amongst others).
2. The MailList __init__ function calls the __init__
functions of its superclasses if they have that function;
which they do not in the case of the of TopicMgr and
Bouncer classes
3. The MailList __init__ function calls its own
InitTempVars function which in turn calls the
InitTempVars functions of MailList's superclasses if they
have that function; which they do not in the case of the
of class TopicMgr and Bouncer classes
4. The MailList __init__ function does not call the
InitVars functions of the TopicMgr and Bouncer classes
which is why self.topics and self.delivery_status are
undefined attributes of the MailList instance being
created; these being instance variables introduced by
MM 2.1b5 and missing from MM 2.0.13 instance of the
MailList class which is what is being dealt with at the
time the update is being done.
Adding the following definition to the TopicMgr and
Bouncer class definitions seem to clear the problem
although whether this is the best log-tem solution is
questionable:
InitTempVars = InitVars
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=300103&aid=651406&group_id=103
More information about the Mailman-Developers
mailing list