[Zope] How to trigger the default browser from Zope?

Bobb rawbobb@hotmail.com
Tue, 22 Jul 2003 21:18:30 -0400


Ausum, Please keep it on the list.

That was just a hunch, based on too much damn M$ in my bloodstream, I guess
I
was just thinking like a "Redmondian".:)
I was having problems with an NT4 machine just today actually, I did see
(and the bulb went off again)
that in NT4 that under services, there's the "Interact with the desktop"
check box.  under
everything > w2k, it's under logon (2nd tab under service properties ) maybe
checking / enabling that will help.
I _wish_ I knew more about win32service, but unfortunately I don't.
I guess my advice would be  1) read the source and 2) google is your friend.

Good luck.


ill help
----- Original Message -----
From: "Ausum Studio" <ausum_studio@hotmail.com>
To: "Bobb" <rawbobb@hotmail.com>
Sent: Tuesday, July 22, 2003 2:59 PM
Subject: Re: [Zope] How to trigger the default browser from Zope?


> Thank you Bobb.
>
> Yes I did. When running as a service, nothing happens; when running
> standalone the url is triggered in the active window, thus without
spawning
> a new one. There's a parameter in the webbrowser module meant to spawn a
new
> browser window, but it doesn't seem to work properly.
>
> Could you elaborate on how to deal with win32service? :)
>
>
> Ausum
>
>
>
> ----- Original Message -----
> From: "Bobb" <rawbobb@hotmail.com>
> To: <zope@zope.org>
> Sent: Monday, July 21, 2003 7:15 PM
> Subject: Re: [Zope] How to trigger the default browser from Zope?
>
>
> > I think there's more magic you need to actually get a service to spawn a
> > desktop / user process.  (although I couldn't tell you what it is :(
> >
> > look at win32service or win32serviceutil maybe.
> > Have you tested it with IE already loaded / running?  Not sure why I'm
> > asking... just looking for more info.
> >
> > ----- Original Message -----
> > From: "Ausum Studio" <ausum_studio@hotmail.com>
> > To: <zope@zope.org>
> > Sent: Sunday, July 20, 2003 8:34 PM
> > Subject: [Zope] How to trigger the default browser from Zope?
> >
> >
> > > 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
> > >
> > >
> > >
> > >
> > >
> > > _______________________________________________
> > > 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 )
> > >
> >
> > _______________________________________________
> > 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 )
> >
>