Issue #89 resolved

Make Aspect work with generators

Anonymous created an issue

Reported by rdelon

Comments (4)

  1. Anonymous

    Here is stacktrace of my script.

    Traceback (most recent call last):
      File "/usr/lib/python2.3/site-packages/cherrypy/", line 206, in doRequest
      File "/usr/lib/python2.3/site-packages/cherrypy/", line 390, in handleRequest
        body = func(*(virtualPathList + cpg.request.paramList), **(cpg.request.paramMap))
      File "/usr/lib/python2.3/site-packages/cherrypy/lib/", line 61, in _wrapper
        result = value + result
    TypeError: cannot concatenate 'str' and 'generator' objects
  2. Sylvain Hellegouarch

    It looks like with the latest version of CP (2.0.0), the problem now is an infinite recursion in :

    status, value = object.getattribute(self, '_before')(methodName, method)

    If you return a generator as a value.

  3. Anonymous

    IRC consensus was that the aspect module should be deprecated, and other existing aspect modules be promoted.

    I suggest we close this ticket as "wontfix", but I'll leave it up to a vet to do that.

  4. Log in to comment