Re: [Zope] Running Mailman CGI under Zope ZServer

2000-11-17 Thread Stephan Richter

At 09:55 AM 11/17/00 -0500, you wrote:
> >Any chance I could take a look at your code?

1. Make a soft link from HOME/OF/MAILMAN/Mailman to HOME/OF/PYTHON/LIBS 
(usually /usr/lib/python1.5).
2. Now you are able to use all the Mailman Python modules in all of you 
Python programs including Zope.
3. The methods (External Methods) I used:

from Mailman import MailList

def addMember(email, passwd):
 mlist = MailList.MailList('members')
 mlist.ApprovedAddMember(email, passwd, 0)
 mlist.Unlock()

def delMember(email):
 mlist = MailList.MailList('members')
 mlist.DeleteMember(email)
 mlist.Unlock()

Note: If you go and read the Mailman source code, you can figure out many 
more functions, that are just the 2 I used to add/delete members.

4. As I mention before, you should run Mailman and Zope as the same user to 
not conflict with the DB permissions. I never fully tested that though.

Regards,
Stephan


--
Stephan Richter
CBU - Physics and Chemistry Student
Web2k - Web Design/Development & Technical Project Management


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Running Mailman CGI under Zope ZServer

2000-11-17 Thread Stephan Richter


>Second, is Mailman going to be integrated with Zope?  It seems like a
>natural fit.  It would be nice to move away from the pipermail archiving
>and use the Zope object database for archiving messages instead.

I wrote once my own Python Product for Zope that simply imported the 
important methods and wrote my own little scripts on top. It is really 
easy. The only difficulty is to keep the Mailman database permissions 
straight, since they adjust to the executing user after every access. So 
the best is to run Zope and Mailman from the same account.

Regards,
Stephan

--
Stephan Richter
CBU - Physics and Chemistry Student
Web2k - Web Design/Development & Technical Project Management


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )