it fixes the problem!

anand / aaron
can you please commit it to web.py git?

thanks!

On Thu, Feb 5, 2009 at 3:53 AM, Alex K <[email protected]> wrote:

>
> In http.py do this:
>
> import itertools # added
> def profiler(app):
>    """Outputs basic profiling information at the bottom of each
> response."""
>    from utils import profile
>    def profile_internal(e, o):
>        out, result = profile(app)(e, o)
>        return itertools.chain(list(out) + ['<pre>' + net.websafe
> (result) + '</pre>']) # added
> #        return out + ['<pre>' + net.websafe(result) + '</pre>']
>    return profile_internal
>
> On Jan 7, 7:47 pm, "[email protected]" <[email protected]> wrote:
> > Traceback (most recent call last): File
> > "/Users/mark/work/common/web/wsgiserver/__init__.py", line 1174, in
> > communicate req.respond() File
> > "/Users/mark/work/common/web/wsgiserver/__init__.py", line 544, in
> respond
> > self._respond() File
> "/Users/mark/work/common/web/wsgiserver/__init__.py",
> > line 556, in _respond response = self.wsgi_app(self.environ,
> > self.start_response) File "/Users/mark/work/common/web/httpserver.py",
> line
> > 201, in __call__ return self.app(environ, xstart_response) File
> > "/Users/mark/work/common/web/http.py", line 158, in profile_internal
> return
> > out + ['
> >
> > ' + net.websafe(result) + '
> >
> > '] TypeError: unsupported operand type(s) for +: 'itertools.chain' and
> > 'list'
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to