Helpful Information
 
 
Category: Python Programming
viewing newsgroups with Zope

Hi,
I am trying to use a web front end to view already existing newsgroups
on an nntp server. I want to use Zope and was wondering if there are
any zope products out there that will do this for me. I do not need
it to act as a mail server or anything like this. I had a quick look
at zopeGUM but this seems to be saying that it *will* provide
something that may do this for me. Any help/suggestions would be
appreciated.

Thanks,
Joe.

I have no idea if this would be of any use to you but thought I would pass it on. Maybe the guys doing this project can help or point you in another direction.

http://fetchem.sourceforge.net/

Darryl

I dont know of any Zope products that access news groups but python library nntplib is a good place to start
(shamelessly stolen from python docs) ;)
>>> s = NNTP('news.cwi.nl')
>>> resp, count, first, last, name = s.group('comp.lang.python')
>>> print 'Group', name, 'has', count, 'articles, range', first, 'to', last
Group comp.lang.python has 59 articles, range 3742 to 3803
>>> resp, subs = s.xhdr('subject', first + '-' + last)
>>> for id, sub in subs[-10:]: print id, sub
...
3792 Re: Removing elements from a list while iterating...
3793 Re: Who likes Info files?
3794 Emacs and doc strings
3795 a few questions about the Mac implementation
3796 Re: executable python scripts
3797 Re: executable python scripts
3798 Re: a few questions about the Mac implementation
3799 Re: PROPOSAL: A Generic Python Object Interface for Python C Modules
3802 Re: executable python scripts
3803 Re: \POSIX{} wait and SIGCHLD
>>> s.quit()
'205 news.cwi.nl closing connection. Goodbye.'

I tried creating a python script in zope that used nntplib and got the following error message:

import of "nntplib" is unauthorized

So it looks like your best solution is to try creating a python external method.

Cheers

Martin Wehipeihana

NetHomes (http://www.nethomes.co.nz/)










privacy (GDPR)