Is someone read browser.contents ?
Hi, Today i have added a piece of code in my fct test class to be able to open browser.contents inside a real browser: def openInFirefox(self, contents, firefox_path='firefox'): d, fn = mkstemp('.html') f = open(fn, 'w') f.write(contents) os.popen('%s %s'%(firefox_path, fn)) I would like to know if there is something similar or already done in the a zope egg, cause i m sure nobody read the html with their eyes :) -- JeanMichel FRANCOIS Makina Corpus
Hi JeanMichel, Did you save content from external pages into ZODB? I was thinking in past about it to make little automated archive with squishdot. If you will have success, would you like to publish your zexp and products, please? Many thanks, J. Lukesh ----- Original Message ----- From: JeanMichel FRANCOIS Today i have added a piece of code in my fct test class to be able to open browser.contents inside a real browser: def openInFirefox(self, contents, firefox_path='firefox'): d, fn = mkstemp('.html') f = open(fn, 'w') f.write(contents) os.popen('%s %s'%(firefox_path, fn)) I would like to know if there is something similar or already done in the a zope egg, cause i m sure nobody read the html with their eyes :)
Hi J. Lukesh, No, no, i speak about doctest using Products.Five.testbrowser and not real web site parsing from external pages. may i was not clear enough. While writing doctest with that testbrowser, i m not really confortable to read the html tags on the consol outpout by doing browser.contents. So That was the reason why i have doing this small openInFirefox method. -- JeanMichel FRANCOIS Makina Corpus Le Monday 13 October 2008 18:23:30 Jaroslav Lukesh, vous avez écrit :
Hi JeanMichel,
Did you save content from external pages into ZODB? I was thinking in past about it to make little automated archive with squishdot.
If you will have success, would you like to publish your zexp and products, please?
Many thanks, J. Lukesh
participants (2)
-
Jaroslav Lukesh -
JeanMichel FRANCOIS