Hi, I have found the solution. Just pip install pastescript. However, to make the logger configurations effective, we need to fix a bug here:
File: /plugins/python/pyloader.c Line: 669 From: PyTuple_SetItem(paste_logger_arg, 0, PyString_FromString(paste)); To: PyTuple_SetItem(paste_logger_arg, 0, PyString_FromString(paste + 7)); That will remove the string "config:" from the string named paste so as to become a valid file name which will be handled by ConfigParser.read(). On Mon, Feb 20, 2012 at 7:00 PM, <[email protected]> wrote: > Send uWSGI mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi > or, via email, send a message with subject or body 'help' to > [email protected] > > You can reach the person managing the list at > [email protected] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of uWSGI digest..." > > > Today's Topics: > > 1. Re: new php plugin (that does not sucks) (?ukasz Mierzwa) > 2. uWSGI + Pyramid (Liang Sun) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 20 Feb 2012 10:11:10 +0100 > From: ?ukasz Mierzwa <[email protected]> > To: [email protected] > Cc: Roberto De Ioris <[email protected]> > Subject: Re: [uWSGI] new php plugin (that does not sucks) > Message-ID: <1397991.OfWQysTxzx@kbox> > Content-Type: text/plain; charset="utf-8" > > Dnia niedziela, 19 lutego 2012 18:42:21 Roberto De Ioris pisze: > > I have finally managed to build a fully working (yes i have marked it as > > stable even if it is part of the development code) php plugin. > > > > It contains additonal features for security and fast configuration, and > > (maybe the most important part) it does not require a fool build > > procedure. > > > > It is now a normal uWSGI plugin (so you can even embed it in the core) > > based on libphp. > > > > Sadly debian-based distros do not include libphp (but redhat-based, like > > fedora and centos have it), so you could need to rebuild php (but it is > an > > easy task, as you only need to add a flag to ./configure) > > > > http://projects.unbit.it/uwsgi/wiki/PHP > > > > The wiki page has been updated with a funny (and complex) config that you > > could use as reference. > > > > I have released a new snapshot too (the third), to allows you to test it > > easily. > > > > Every report will be wellcomed. > > I've tested it with very simple app and it works fine and suprisingly fast. > > ?ukasz Mierzwa > > > ------------------------------ > > Message: 2 > Date: Mon, 20 Feb 2012 17:21:39 +0800 > From: Liang Sun <[email protected]> > To: [email protected] > Subject: [uWSGI] uWSGI + Pyramid > Message-ID: > <camfg8sr746be1ih6_2n48m-3pkkathqjz1x0fvyrjb1+k8g...@mail.gmail.com > > > Content-Type: text/plain; charset="utf-8" > > Hi, > > uWSGI works well with Pyramid web framework, except that Pyramid's > configurations about logger are not handled properly by uWSGI. > > I updated the most recent code of uWSGI, and found there is a > --ini-paste-logged option in the development version, > but it doesn't work, complaining there is no > "paste.script.util.logging_config" module. > > I explored my python packages path, and didn't find the > "paste.script.util.logging_config" module either. > I installed the most recent paste and pyramid via pip. > > PS: I found maybe "pyramid.paster.setup_logging" is the same as > "paste.script.util.logging_config". > > Would you tell me how to solve this issue? > Thanks. > > -- > Liang Sun <http://liangsun.org> > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://lists.unbit.it/pipermail/uwsgi/attachments/20120220/3d737b97/attachment-0001.html > > > > ------------------------------ > > _______________________________________________ > uWSGI mailing list > [email protected] > http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi > > > End of uWSGI Digest, Vol 29, Issue 34 > ************************************* > -- Liang Sun <http://liangsun.org>
_______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
