Re: [Zope-dev] RFC ZTK: Change zope.app.wsgi to set REMOTE_USER
Committed and released as 3.14.0. Jim On Mon, Jan 9, 2012 at 6:26 PM, Jim Fulton wrote: > I'm trying to untangle zope.app-based applications from zope.server > and am trying to figure out a sane way to get an access log. > > zope.app.wsgi sets the "wsgi.logging_info" WSGI environment variable > with a user label to display in access logs (presumably). The only > thing I've seen that leverages this is (perversely) > zc.zopeservertracelog, which bridges this mechanism with the > access-log mechanism provided by zope.server. Does anyone know of > anything else that uses wsgi.logging_info? > > I'd like to use something independent of the server, like > paste.translogger. paste.translogger get the user from the > REMOTE_USER environment variable. > > I propose to modify zope.app.wsgi to set REMOTE_USER if it isn't > already set. This would be in addition to setting wsgi.logging_info. > > Any objections? > > Jim > > -- > Jim Fulton > http://www.linkedin.com/in/jimfulton -- Jim Fulton http://www.linkedin.com/in/jimfulton ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] RFC ZTK: Change zope.app.wsgi to set REMOTE_USER
On Jan 10, 2012, at 10:17 AM, Jim Fulton wrote: > BTW, zope.app.wsgi isn't in the ZTK. :) It's not in ztk-versions.cfg, but it is in zopeapp-versions.cfg. That's still part of ZTK package. ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] RFC ZTK: Change zope.app.wsgi to set REMOTE_USER
On Mon, Jan 9, 2012 at 6:26 PM, Jim Fulton wrote: > I'm trying to untangle zope.app-based applications from zope.server > and am trying to figure out a sane way to get an access log. > > zope.app.wsgi sets the "wsgi.logging_info" WSGI environment variable > with a user label to display in access logs (presumably). The only > thing I've seen that leverages this is (perversely) > zc.zopeservertracelog, which bridges this mechanism with the > access-log mechanism provided by zope.server. Does anyone know of > anything else that uses wsgi.logging_info? > > I'd like to use something independent of the server, like > paste.translogger. paste.translogger get the user from the > REMOTE_USER environment variable. > > I propose to modify zope.app.wsgi to set REMOTE_USER if it isn't > already set. This would be in addition to setting wsgi.logging_info. > > Any objections? BTW, zope.app.wsgi isn't in the ZTK. :) Jim -- Jim Fulton http://www.linkedin.com/in/jimfulton ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] RFC ZTK: Change zope.app.wsgi to set REMOTE_USER
On Mon, Jan 09, 2012 at 06:26:58PM -0500, Jim Fulton wrote: > I'm trying to untangle zope.app-based applications from zope.server > and am trying to figure out a sane way to get an access log. > > zope.app.wsgi sets the "wsgi.logging_info" WSGI environment variable > with a user label to display in access logs (presumably). The only > thing I've seen that leverages this is (perversely) > zc.zopeservertracelog, which bridges this mechanism with the > access-log mechanism provided by zope.server. Does anyone know of > anything else that uses wsgi.logging_info? > > I'd like to use something independent of the server, like > paste.translogger. paste.translogger get the user from the > REMOTE_USER environment variable. > > I propose to modify zope.app.wsgi to set REMOTE_USER if it isn't > already set. This would be in addition to setting wsgi.logging_info. +1 Marius Gedminas -- http://pov.lt/ -- Zope 3/BlueBream consulting and development signature.asc Description: Digital signature ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )