Newbie Question on using External Python Library
I have a python script that I run that checks the status of lpc 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 authorization message that is supposed to happen. Can I get to this library from within Zope? I tried to add telnetlib as an external method... but to no avail. It's looking for an argument such as (Oh heck, I'm not in front of it right now). I was 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 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 that I'm coming to know and love ? or not :<( ? Thanx in advance for anyone's help.
hi, read: yourZOPE/lib/python/Products/PythonScripts/README.txt maybe you should use an external method for that. cheers, maik working4aliving wrote:
I have a python script that I run that checks the status of lpc 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 authorization message that is supposed to happen. Can I get to this library from within Zope? I tried to add telnetlib as an external method... but to no avail. It's looking for an argument such as (Oh heck, I'm not in front of it right now). I was 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 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 that I'm coming to know and love ? or not :<( ?
Thanx in advance for anyone's help.
-- Maik Jablonski __o www.zfl.uni-bielefeld.de _ \<_ Deutsche Zope User Group Bielefeld, Germany (_)/(_) www.dzug.org
Thanks Maik, sorry I didn't read that first. :<( my bad. I'll let you know. ----- Original Message ----- From: "Maik Jablonski" <maik.jablonski@uni-bielefeld.de> To: "working4aliving" <working4aliving@hotmail.com> Cc: <zope@zope.org> Sent: Friday, August 16, 2002 11:58 AM Subject: Re: [Zope] Newbie Question on using External Python Library
hi,
read: yourZOPE/lib/python/Products/PythonScripts/README.txt
maybe you should use an external method for that.
cheers, maik
working4aliving wrote:
I have a python script that I run that checks the status of lpc 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 authorization message that is supposed to happen. Can I get to this library from within Zope? I tried to add telnetlib as an external method... but to no avail. It's looking for an argument such as (Oh heck, I'm not in front of it right now). I was 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 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 that I'm coming to know and love ? or not :<( ?
Thanx in advance for anyone's help.
-- Maik Jablonski __o www.zfl.uni-bielefeld.de _ \<_ Deutsche Zope User Group Bielefeld, Germany (_)/(_) www.dzug.org
This a very newbie Q: can someone please point me in the direction of documentation on the CMF, especially of a "here are the features and how to set them up" variety. I can't find anything like that. TIA Robert
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday 16 August 2002 12:02 pm, Robert J Shepherd wrote: Well, there's always http://cmf.zope.org/ Then there's docs listed there... Russell
This a very newbie Q: can someone please point me in the direction of documentation on the CMF, especially of a "here are the features and how to set them up" variety. I can't find anything like that.
TIA
Robert
- -- Linux -- the OS for the Renaissance Man -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9Xb2DAqKGrvVshJQRAkT1AJoD/z9eo5Bk6Dk8bUPLJ+7ll6skSwCfaT/l IDWz6x1E62aDzdPHH4e1dxc= =h//T -----END PGP SIGNATURE-----
participants (4)
-
Maik Jablonski -
Robert J Shepherd -
Russell Hires -
working4aliving