Re: [Mailman-Users] Writing a Mailman Script

2006-09-07 Thread stephen
Nerses Ohanyan writes: > I have set up everything, but it simply doesn't work. How can I debug > my code? How can I see what the code is doing (i.e. can I print to > terminal?) You can run it under an interactive Python, I'm sure, but you'll need to do a bunch of importing by hand and prepar

Re: [Mailman-Users] Writing a Mailman Script

2006-09-07 Thread Brad Knowles
At 2:14 PM -0700 2006-09-07, Nerses Ohanyan wrote: > I have set up everything, but it simply doesn't work. How can I debug > my code? How can I see what the code is doing (i.e. can I print to > terminal?) Unfortunately, Python doesn't have a lot of debugging tools. You can either run the p

Re: [Mailman-Users] Writing a Mailman Script

2006-09-07 Thread Nerses Ohanyan
I have set up everything, but it simply doesn't work. How can I debug my code? How can I see what the code is doing (i.e. can I print to terminal?) Thanks On 9/7/06, Nerses Ohanyan <[EMAIL PROTECTED]> wrote: > Thank you. That's exactly what I needed to know. Unfortunately, I'm > really not an

Re: [Mailman-Users] Writing a Mailman Script

2006-09-07 Thread Matthew Thompson
When I implemented a custom handler for my server, I followed this FAQ: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq04.067.htp Between that, the python docs that someone else mentioned and looking at the existing handlers in Mailman/Handlers I was able to get things going with litt

Re: [Mailman-Users] Writing a Mailman Script

2006-09-06 Thread stephen
Brad Knowles writes: > At 3:31 PM -0700 2006-09-06, Nerses Ohanyan wrote: > > > I have a python script that can process an ascii text file, but I want > > to run this script for one of my mailing lists, so that it processes > > the e-mail message (the script populates my database). Where

Re: [Mailman-Users] Writing a Mailman Script

2006-09-06 Thread Nerses Ohanyan
Thanks. I looked at the archives, but so far I'm not seeing anything particularly useful. Does anyone know what exactly is being passed to my handler? does anyone know where msg, mlist and msgdata are defined (or the appropriate variables) ? Not even sure I'm making sense. I'll keep digging a

Re: [Mailman-Users] Writing a Mailman Script

2006-09-06 Thread Brad Knowles
At 3:31 PM -0700 2006-09-06, Nerses Ohanyan wrote: > I have a python script that can process an ascii text file, but I want > to run this script for one of my mailing lists, so that it processes > the e-mail message (the script populates my database). Where can I > find help with details abou

[Mailman-Users] Writing a Mailman Script

2006-09-06 Thread Nerses Ohanyan
I have a python script that can process an ascii text file, but I want to run this script for one of my mailing lists, so that it processes the e-mail message (the script populates my database). Where can I find help with details about writing python scripts to be inserted in a mailing list pipeli