At 16:23 04/10/2005 -0700, David M. Cook wrote:
>On Sun, Apr 10, 2005 at 03:44:38PM -0700, Paul G. Allen wrote:
>
>> I like this idea and will mark this post so I can look into the links 
>> later. Embedding a browser with the app. sounds like a better solution
than 
>> installing Apache with the app. (even though a standard Apache install is 
>> as easy as many other applications).
>
>Bruce Eckel wrote an article about this
>
>http://mindview.net/WebLog/log-0045
>
>With Python's webbrowser module and twisted this is really easy:
>
>  # start the server with my root page
>  reactor.listenTCP(8080, appserver.NevowSite(RootPage()))
>  # open the default web browser after the server has started
>  reactor.callWhenRunning(webbrowser.open, "http://localhost:8080";)
>  reactor.run() 
>  # we'll call reactor.stop() when the user clicks the 'Quit' link.
>  
>The user never needs be root to install or use this.

But it still doesn't solve the Windows problem of having to download or
bundle a bunch of stuff just to get a simple web server. On Windows, I use
TinyWeb from RitLabs <http://www.ritlabs.com> It's only 53Kbytes and can
easily be installed by anyone. Just uncompress it to a directory and create
a shortcut. Of course, that is still probably too much for most Windows users.

Gus
-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg

Reply via email to