[Mailman-Users] subscribing subscribers to topics

Christopher Adams chris.a.adams at state.or.us
Mon Jun 14 19:41:47 CEST 2004


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 joe.blow at anywhere.com 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 joe.blow at anywhere Licensing
>
>
>  
>

-- 
Christopher Adams
Library Systems Analyst
Oregon State Library
503-378-4243 258
chris.a.adams at state.or.us







More information about the Mailman-Users mailing list