[Repoze-dev] repoze.bfg.xmlrpc - httpserver hangs
hi list, I created a web-service with repoze.bfg and repoze.bfg.xmlrpc with a xmlrpx_view. This views creates a PDF and it should return me a simple string with the url of the PDF but in order to get my string back I need to restart repoze 'cause the application hangs at some point after the view returns the string. I went trough the code with pdb and I found that the application hangs on the method worker_thread_callback in Paste-1.7.2-py2.6.egg/paste/httpserver.py I tried to make the view returning the string directly and it works... so it seems it doesn't like processing stuff in the meanwhile... :) In other word, this works: [...] @xmlrpc_view def generate_report(context, data): url = 'http://foo.com/static/file.pdf' return url [...] whilst this don't: [...] @xmlrpc_view def generate_report(context, data): do_this [...] do_that url = 'http://foo.com/static/file.pdf' return url [...] It's a bit weird... any suggestion will be much appreciated. Thanks, SimO ___ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev
Re: [Repoze-dev] repoze.bfg.xmlrpc - httpserver hangs
simahawk wrote: hi list, I created a web-service with repoze.bfg and repoze.bfg.xmlrpc with a xmlrpx_view. This views creates a PDF and it should return me a simple string with the url of the PDF but in order to get my string back I need to restart repoze 'cause the application hangs at some point after the view returns the string. I went trough the code with pdb and I found that the application hangs on the method worker_thread_callback in Paste-1.7.2-py2.6.egg/paste/httpserver.py I tried to make the view returning the string directly and it works... so it seems it doesn't like processing stuff in the meanwhile... :) In other word, this works: [...] @xmlrpc_view def generate_report(context, data): url = 'http://foo.com/static/file.pdf' return url [...] whilst this don't: [...] @xmlrpc_view def generate_report(context, data): do_this [...] do_that url = 'http://foo.com/static/file.pdf' return url [...] It's a bit weird... any suggestion will be much appreciated. You might try the threads middleware of repoze.debug: http://pypi.python.org/pypi/repoze.debug/0.7 It might help you get an idea of what your threads are doing during the lockup. - C Thanks, SimO ___ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev ___ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev
Re: [Repoze-dev] repoze.bfg.xmlrpc - httpserver hangs
On Wed, 2009-09-09 at 11:44 -0400, Chris McDonough wrote: simahawk wrote: hi list, I created a web-service with repoze.bfg and repoze.bfg.xmlrpc with a xmlrpx_view. This views creates a PDF and it should return me a simple string with the url of the PDF but in order to get my string back I need to restart repoze 'cause the application hangs at some point after the view returns the string. I went trough the code with pdb and I found that the application hangs on the method worker_thread_callback in Paste-1.7.2-py2.6.egg/paste/httpserver.py I tried to make the view returning the string directly and it works... so it seems it doesn't like processing stuff in the meanwhile... :) In other word, this works: [...] @xmlrpc_view def generate_report(context, data): url = 'http://foo.com/static/file.pdf' return url [...] whilst this don't: [...] @xmlrpc_view def generate_report(context, data): do_this [...] do_that url = 'http://foo.com/static/file.pdf' return url [...] It's a bit weird... any suggestion will be much appreciated. You might try the threads middleware of repoze.debug: http://pypi.python.org/pypi/repoze.debug/0.7 It might help you get an idea of what your threads are doing during the lockup. - C Thanks Chris, I'll give a try. ___ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev
[Repoze-dev] buildbot failure in Repoze BFG trunk on py2.4-64bit-linux
The Buildbot has detected a failed build of py2.4-64bit-linux on Repoze BFG trunk. Full details are available at: http://bfg.buildbot.securactive.org/builders/py2.4-64bit-linux/builds/111 Buildbot URL: http://bfg.buildbot.securactive.org/ Buildslave for this Build: mother Build Reason: The Nightly scheduler named 'nightly1' triggered this build Build Source Stamp: HEAD Blamelist: BUILD FAILED: failed test sincerely, -The Buildbot ___ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev
[Repoze-dev] buildbot failure in Repoze BFG trunk on py2.4-32bit-linux
The Buildbot has detected a failed build of py2.4-32bit-linux on Repoze BFG trunk. Full details are available at: http://bfg.buildbot.securactive.org/builders/py2.4-32bit-linux/builds/113 Buildbot URL: http://bfg.buildbot.securactive.org/ Buildslave for this Build: sondebb6 Build Reason: The Nightly scheduler named 'nightly1' triggered this build Build Source Stamp: HEAD Blamelist: BUILD FAILED: failed svn-last-change sincerely, -The Buildbot ___ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev
[Repoze-dev] A question about the security description in the SQLAlchemy + URL Dispatch Wiki Tutorial
Don't quite understand the following function, as described The groupfinder defined here is an authorization policy “callback”; can't see it is called by which function. And it doesn't matter if I remove the function from the code. def groupfinder(userid, request): if userid in USERS: return GROUPS.get(userid, []) ___ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev
[Repoze-dev] Fwd: repoze.bfg.xmlrpc - httpserver hangs
I found that if you run zope3 server under paste you get the same thing, whereas if you use twisted it works fine. See this thread I posted last year. https://mail.zope.org/pipermail/zope3-users/2008-October/008261.html T On Wed, Sep 9, 2009 at 11:32 PM, simahawksimah...@gmail.com wrote: hi list, I created a web-service with repoze.bfg and repoze.bfg.xmlrpc with a xmlrpx_view. This views creates a PDF and it should return me a simple string with the url of the PDF but in order to get my string back I need to restart repoze 'cause the application hangs at some point after the view returns the string. I went trough the code with pdb and I found that the application hangs on the method worker_thread_callback in Paste-1.7.2-py2.6.egg/paste/httpserver.py I tried to make the view returning the string directly and it works... so it seems it doesn't like processing stuff in the meanwhile... :) In other word, this works: [...] @xmlrpc_view def generate_report(context, data): url = 'http://foo.com/static/file.pdf' return url [...] whilst this don't: [...] @xmlrpc_view def generate_report(context, data): do_this [...] do_that url = 'http://foo.com/static/file.pdf' return url [...] It's a bit weird... any suggestion will be much appreciated. Thanks, SimO ___ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev ___ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev