Re: [Simpleweb-py-users] simpleweb-0.6.11
Status: Beta
Brought to you by:
essiene
From: simpleweb-users <sim...@li...> - 2006-12-12 09:07:41
|
On 12/11/06, Samuel Montgomery-Blinn <sa...@ca...> wrote: > > simpleweb-users wrote: > > Version 0.6.11 uploaded to Cheeseshop. > > > > This version handles exceptions a bit better... especially ImportError > > exceptions, so the user can see what happened better than previously. > > > > The idea behind the 0.6.XX series of updates, has been to fix bugs and > > suggestions without adding new features as they come in, while working > > on more documentation/features for the website. > > > > 0.7.XX branch will start soon with a bit more features (nothing drastic, > > just things like addign support for dev server auto-restart, etc). > > > > Cheers, > > Essien > > > > > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > > opinions on IT & business topics through brief surveys - and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > _______________________________________________ > > Simpleweb-py-users mailing list > > Sim...@li... > > https://lists.sourceforge.net/lists/listinfo/simpleweb-py-users > > > > I was wondering if for 0.7.XX, a tiny small thing would be useful to do: > > In simpleweb/__init__.py: > > make_server(config.host, config.port, app).serve_forever() > > I would suggest a small change here to allow the server to start on port > 80 (requires root) and yet continue running as a non-root user: > > httpd = make_server(config.host, config.port, app) > > if (hasattr(config,'setgid')): > os.setgid(config.setgid) > if (hasattr(config,'setuid')): > os.setuid(config.setuid) > > httpd.server_forever() > > (You have to setgid before calling setuid, or else you've already given > up authority to call setgid.) > > But, in the end, it might not be worth putting any of that into the > code, as I suppose it is expected that the user will not run the app in > "production" using the wsgiref http server. Actually... its not a bad idea to add. I have intentions of running some small config type apps (think webmin type stuff) purely with the internal server, so it won't be a bad idea to get the internal server to be more robust. I'll definitely add this in. Want to work on the 'Core Objects' part of the site today, so prolly won't do this till latter in the week. Also, trying to get svn properly setup for the project, so we can start sending and applying patches easily. :) thanks for the excellent suggestion. -Sam > > |