That addtopics.py was a typo. The name of the file is addtopic.py, but when I run withlist, I get the error message that I quoted, that the addtopic module doesn't exist. Do I have to 'install' the module or something? I am a novice with Python, so am unfamiliar with modules, but I have been reading a bit. Any help is most appreciated.

Jim Tittsler wrote:

On Fri, Jun 11, 2004 at 10:00:48AM -0700, Christopher Adams wrote:


Thanks for your reply. As an experiment, I tried doing just as you said. I created a file named addtopics.py in the /lists/Mailman directory.


Spelling error? addtopics.py instead of addtopic.py?



From the command line, I issued the command: ./withlist -l -r addtopic testlist [EMAIL PROTECTED] Licensing

The result follow:

Importing addtopic...
Traceback (most recent call last):
File "./withlist", line 275, in ?
main()
File "./withlist", line 247, in main
mod = __import__(module)
ImportError: No module named addtopic



By default bin/withlist -r will run a function from a module of the same name... so a function called addtopic in the addtopic.py module is the least typing. :-)

But, you can specify the module name and the callable function:

$ bin/withlist -l -r addtopics.addtopic testlist [EMAIL PROTECTED] Licensing





-- Christopher Adams Library Systems Analyst Oregon State Library 503-378-4243 258 [EMAIL PROTECTED]




------------------------------------------------------ Mailman-Users mailing list [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/

Reply via email to