[Mailman-Developers] Problems subclassing Mailman.Archiver.Archiver

Kevin Murphy kevin at eorbit.net
Fri Apr 25 17:40:57 EDT 2003


Bewildered newbie seeks aid.

For sinister reasons known only to myself, I want to subclass
Mailman.Archiver.Archiver to extend the ArchiveMail method to do some
extra work on each invocation.

I created Mailman.Archiver.MyArchiver, subclassed Archiver, and made my
changes. It compiles fine. I then changed MailList.py, replacing all
references to Mailman.Archiver.Archiver to MyArchiver. It compiles fine.

However, when install my changes and restart with mailmanctl, I get the
following error:
        
        [root]# /home/mailman/bin/mailmanctl start
        Traceback (most recent call last):
          File "/home/mailman/bin/mailmanctl", line 538, in ?
            main()
          File "/home/mailman/bin/mailmanctl", line 357, in main
            check_for_site_list()
          File "/home/mailman/bin/mailmanctl", line 275, in
        check_for_site_list
            sitelist = MailList(sitelistname, lock=0)
        TypeError: 'module' object is not callable

I suspect this has something to do with some pickled MailList object
that's different than my altered MailList. But what do I know? I learned
Python last week. :)

Is there a way to get this to work, or am I going about it all wrong?

-- 
Kevin Murphy




More information about the Mailman-Developers mailing list