Did you upgrade Paste Deploy? It has a fix for filter-with. laurent wrote: > Hello, > > It seems like the PrefixMiddleware is breaking my tests: > > If I use the following configuration: > > [app:main] > use = egg:helloworld > cache_dir = %(here)s/data > session_key = hello > session_secret = somesecret > prefix = /hello > > nosetests is executed correctly. But if I change the config to use the > new middleware like this: > > [app:main] > use = egg:helloworld > cache_dir = %(here)s/data > session_key = hello > session_secret = somesecret > filter-with = proxy-prefix > > [filter:proxy-prefix] > use = egg:PasteDeploy#prefix > prefix = /hello > > I get the following traceback: > > Traceback (most recent call last): > File "c:\python24\lib\site-packages\nose-0.9.3-py2.4.egg\nose > \suite.py", line 51, in run > self.setUp() > File "c:\python24\lib\site-packages\nose-0.9.3-py2.4.egg\nose > \suite.py", line 200, in setUp > self.module = _import(self.moduleName, [self.path], self.conf) > File "c:\python24\lib\site-packages\nose-0.9.3-py2.4.egg\nose > \importer.py", line 101, in _import > mod = load_module(fqname, fh, filename, desc) > File "E:\biox\biox\tests\__init__.py", line 26, in ? > cmd.run([test_file]) > File "c:\python24\lib\site-packages\PasteScript-1.3.4-py2.4.egg\paste > \script\appinstall.py", line 65, in run > return super(AbstractInstallCommand, self).run(new_args) > File "c:\python24\lib\site-packages\PasteScript-1.3.4-py2.4.egg\paste > \script\command.py", line 210, in run > result = self.command() > File "c:\python24\lib\site-packages\PasteScript-1.3.4-py2.4.egg\paste > \script\appinstall.py", line 443, in command > conf = appconfig(config_spec, relative_to=os.getcwd()) > File "c:\python24\lib\site-packages\PasteDeploy-1.3-py2.4.egg\paste > \deploy\loadwsgi.py", line 204, in appconfig > global_conf=global_conf) > File "c:\python24\lib\site-packages\PasteDeploy-1.3-py2.4.egg\paste > \deploy\loadwsgi.py", line 237, in loadcontext > global_conf=global_conf) > File "c:\python24\lib\site-packages\PasteDeploy-1.3-py2.4.egg\paste > \deploy\loadwsgi.py", line 267, in _loadconfig > return loader.get_context(object_type, name, global_conf) > File "c:\python24\lib\site-packages\PasteDeploy-1.3-py2.4.egg\paste > \deploy\loadwsgi.py", line 393, in get_context > section) > File "c:\python24\lib\site-packages\PasteDeploy-1.3-py2.4.egg\paste > \deploy\loadwsgi.py", line 416, in _context_from_use > context.global_conf.update(global_additions) > AttributeError: 'NoneType' object has no attribute 'update' >
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
