[Zope] Is someone read browser.contents ?

JeanMichel FRANCOIS jeanmichel.francois at makina-corpus.com
Mon Oct 13 11:46:25 EDT 2008


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20081013/1afb687d/attachment.html 


More information about the Zope mailing list