Brad Clements wrote: > I have changed my pipeline:main, to: > > [pipeline:main] > pipeline = error_catcher egg:Paste#recursive transformer authenticate > database appmain > filter-with = admin-prefix > > and > > [filter:admin-prefix] > use = egg:PasteDeploy#prefix > prefix = /admin > > [server:main] > use = egg:PasteScript#wsgiutils > # Change to 0.0.0.0 to make public: > host = 0.0.0.0 > port = 3182 > > Then I setup a proxy rewrite rule in apache. But when I access the > server via apache, I get this: > > 2008-03-11 15:50:40,026 ERROR Traceback (most recent call last): > File > "/usr/local/lib/python2.4/site-packages/WSGIUtils-0.7-py2.4.egg/wsgiutils/wsgiServer.py", > > line 126, in runWSGIApp > File "/usr/local/src/Paste/paste/translogger.py", line 67, in __call__ > return self.application(environ, replacement_start_response) > TypeError: composed() takes exactly 1 argument (2 given) > > > Is it not possible to filter a pipeline with #prefix?
It looks more generally like filter-with doesn't work with pipeline. You can put it directly on the pipeline instead, like: [pipeline:main] pipeline = admin-prefix error_catcher egg:Paste#recursive transformer authenticate database appmain _______________________________________________ Paste-users mailing list [email protected] http://webwareforpython.org/cgi-bin/mailman/listinfo/paste-users
