I'm trying to write a script to determine what lists have users that
have moderation turned on. I found the following example in the list
archives using the withlist command


from Mailman import mm_cfg

def list_moderated(m):
    for member in m.getMembers():
        if m.getMemberOption(member, mm_cfg.Moderate):
            print member

However when I run the command:

withlist -q -r checkModerated.py jww_test

I get the following error:
Traceback (most recent call last):
  File "/home/mailman/bin/withlist", line 297, in ?
    main()
  File "/home/mailman/bin/withlist", line 269, in main
    func = getattr(mod, callable)
AttributeError: 'module' object has no attribute 'py'

This seems pretty simple to me, but I don't have any python experience,
this is my first brush with python. I do know perl, java and assorted
other programming languages but you have to start somewhere when
learning something new. Any help would be appreciated. Or you can
forward this to your co-workers to make fun of the n00b.


Jeff Kunzelman
Principal Systems Engineer - Messaging Infrastructure
DHL Worldwide Express - AMIS
8701 East Hartford Drive
Scottsdale, AZ 85255
USA


_______________________________________________
Mailman-Developers mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-developers
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: 
http://www.mail-archive.com/mailman-developers%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-developers/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp

Reply via email to