[Zope] How to trigger the default browser from Zope?
Ausum Studio
ausum_studio@hotmail.com
Sun, 20 Jul 2003 19:34:54 -0500
I'm in the need to create local alerts to be seen as web pages at the PC
where Zope runs as an NT service, and I've successfully tested the python
module 'webbrowser', outside of the Zope environment:
def trigger_browser(url):
import webbrowser
webbrowser.open(url)
But after copying it in the Extensions folder and loading it via an External
Method, nothing happens. Any other code that I put after the last line will
work, but the browser won't trigger at all. I'm using Zope 2.6.1 for Win32.
I've also tried with both, the official Python distribution + win32all, and
ActivePython, but it's all the same. (The registry keys were modified
accordingly, and the computer restarted.) And curiously, if I load Zope as a
standalone app, then the browser does trigger fine. (The service in all
cases was set up to be started by the Administrator's account )
Has anyone on the list had a similar problem? To run Zope as standalone
isn't currently an option. Any ideas? :)
Ausum