[Zope] Is someone read browser.contents ?

Jaroslav Lukesh lukesh at seznam.cz
Mon Oct 13 12:23:30 EDT 2008


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 :)



More information about the Zope mailing list