Re: [Zope] os.system() - problem when using with lynx browser in linux
(keep stuff on the list) Jim Whitman wrote:
Hi Chris, Thanks for responding, yes, the problem is the limit to 20k. The limit prevents most web pages from being fully captured. When running a similar script in straight python (i.e. not in Zope), the script downloads all of the page i.e. beyond 20k.
That's odd, still, what you're doing is odd... Why are you doign what you're doing? ;-) Chris
Yes - it's a bit odd, perhaps, but I want the Lynx output because it's exactly that - the output from a text-based browser - it shows you what your web pages look like in exactly that medium. It's didactic - but its for teaching and learning, so geared to doing odd things :-) I've since tried swapping Zope's os.py and os.pyc for my own python installation's os.py etc. but this does not effect any change. So, perhaps it's a Zope configuration thing - is it about security, do you think? I know that there's only a very limited set of options if you create a script within Zope - has it got something to do with this, do you think?
(keep stuff on the list)
Jim Whitman wrote:
Hi Chris, Thanks for responding, yes, the problem is the limit to 20k. The limit prevents most web pages from being fully captured. When running a similar script in straight python (i.e. not in Zope), the script downloads all of the page i.e. beyond 20k.
That's odd, still, what you're doing is odd...
Why are you doign what you're doing? ;-)
Chris
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Jim Whitman wrote:
I've since tried swapping Zope's os.py and os.pyc for my own python installation's os.py etc. but this does not effect any change. So, perhaps it's a Zope configuration thing - is it about security, do you think? I know that there's only a very limited set of options if you create a script within Zope - has it got something to do with this, do you think?
I verymuch doubt it's any of the above... "something weird" is happening, probably because you're doing something weird ;-) I wonder if lynx or the shell in which lynx is being run have any limitations on returned size? Chris
participants (2)
-
Chris Withers -
Jim Whitman