[Zope] Newbie Question on using External Python Library

working4aliving working4aliving@hotmail.com
Fri, 16 Aug 2002 11:50:44 -0400


This is a multi-part message in MIME format.

------=_NextPart_000_002C_01C2451B.27177F00
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I have a python script that I run that checks the status of lpc=20
printers on remote solaris boxes using python's telnetlib.
I'm trying to get this to run under zope... and I'm getting the nasty=20
authorization message that is supposed to happen. =20
Can I get to this library from within Zope? I tried to add telnetlib=20
as an external method... but to no avail. It's looking for an=20
argument such as (Oh heck, I'm not in front of it right now).  I was=20
hoping I could.
a) Get this to work / work around the problem. (I've tried an external =
method, but the class TELNET
doesn't have an "func_default" attrib (I'm lost).

or=20
b) Just use an html page with the python script. (exec problem???)


Do I have access to the "wealth" of python libraries from within Zope=20
that I'm coming to know and love ? or not :<( ?

Thanx in advance for anyone's help.=20




------=_NextPart_000_002C_01C2451B.27177F00
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2712.300" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV>
<DIV>I have a python script that I run that checks the status of lpc=20
<BR>printers on remote solaris boxes using python's telnetlib.<BR>I'm =
trying to=20
get this to run under zope... and I'm getting the nasty =
<BR>authorization=20
message that is supposed to happen.&nbsp; <BR>Can I get to this library =
from=20
within Zope? I tried to add telnetlib <BR>as an external method... but =
to no=20
avail. It's looking for an <BR>argument such as (Oh heck, I'm not in =
front of it=20
right now).&nbsp; I was <BR>hoping I could.<BR>a) Get this to work / =
work around=20
the problem. (I've tried an external method, but the class TELNET</DIV>
<DIV>doesn't have an "func_default" attrib (I'm lost).</DIV>
<DIV><BR>or <BR>b) Just use an html page with the python script. (exec=20
problem???)</DIV>
<DIV><BR><BR>Do I have access to the "wealth" of python libraries from =
within=20
Zope <BR>that I'm coming to know and love ? or not :&lt;( ?<BR><BR>Thanx =
in=20
advance for anyone's help. <BR><BR><BR></DIV></DIV></BODY></HTML>

------=_NextPart_000_002C_01C2451B.27177F00--