Re: [Zope] Re: adding a python library

2006-11-15 Thread Chris Withers
David Bear wrote: I am now looking at the modules feedparser imports. You don't need to cover these, just the types you need to import from the library itself and any classes or special types that get returned from methods in the things you import from the library. That said, if I were you,

Re: [Zope] Re: adding a python library

2006-11-14 Thread David Bear
On Tue, Nov 14, 2006 at 07:12:51PM +0100, Andreas Jung wrote: > > > --On 14. November 2006 10:52:31 -0700 David Bear <[EMAIL PROTECTED]> wrote: > > >I am now looking at the modules feedparser imports. These include > > > >sgmllib > >re > >sys > >copy > >urlparse > >time > >rfc822 > >types > >cgi

Re: [Zope] Re: adding a python library

2006-11-14 Thread Andreas Jung
--On 14. November 2006 10:52:31 -0700 David Bear <[EMAIL PROTECTED]> wrote: I am now looking at the modules feedparser imports. These include sgmllib re sys copy urlparse time rfc822 types cgi urllib urllib2 cStringIO xml.sax What are you trying to accomplish? Put your code into an extern

Re: [Zope] Re: adding a python library

2006-11-14 Thread David Bear
On Tue, Nov 14, 2006 at 05:50:36PM +0100, Andreas Jung wrote: > > > --On 14. November 2006 09:32:38 -0700 David Bear <[EMAIL PROTECTED]> wrote: > > > > >What if I created a zope script and just pasted the feedparser.py > >modules contents into it. > > That would be a stupid idea. > > >Do pytho

Re: [Zope] Re: adding a python library

2006-11-14 Thread David Bear
On Mon, Nov 13, 2006 at 08:32:11PM -0500, Tres Seaver wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > David Bear wrote: > > I would like to add Mark Pilgrims feedparser to the available modules > > that I can use in zope. I have installed the feedparser into the > > python instance th

Re: [Zope] Re: adding a python library

2006-11-14 Thread Tino Wildenhain
David Bear schrieb: On Mon, Nov 13, 2006 at 08:32:11PM -0500, Tres Seaver wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David Bear wrote: I would like to add Mark Pilgrims feedparser to the available modules that I can use in zope. I have installed the feedparser into the python instanc

Re: [Zope] Re: adding a python library

2006-11-14 Thread Andreas Jung
--On 14. November 2006 09:32:38 -0700 David Bear <[EMAIL PROTECTED]> wrote: What if I created a zope script and just pasted the feedparser.py modules contents into it. That would be a stupid idea. Do python scripts that live inside zodb become importatable? Zope PythonScripts are *objec