I was running through the "ZODB + Traversal Wiki Tutorial" (http://docs.repoze.org/bfg/1.1/tutorials/bfgwiki/index.html) and noticed that trying to invoke bfgshell causes an error.
bin/paster --plugin=repoze.bfg bfgshell tutorial.ini main Traceback (most recent call last): File "../bin/paster", line 8, in <module> load_entry_point('PasteScript==1.7.3', 'console_scripts', 'paster')() File "/opt/bfg/bfgwiki/lib/python2.6/site-packages/PasteScript-1.7.3-py2.6.egg/paste/script/command.py", line 84, in run invoke(command, command_name, options, args[1:]) File "/opt/bfg/bfgwiki/lib/python2.6/site-packages/PasteScript-1.7.3-py2.6.egg/paste/script/command.py", line 123, in invoke exit_code = runner.run(args) File "/opt/bfg/bfgwiki/lib/python2.6/site-packages/PasteScript-1.7.3-py2.6.egg/paste/script/command.py", line 218, in run result = self.command() File "/opt/bfg/bfgwiki/lib/python2.6/site-packages/repoze.bfg-1.1b2-py2.6.egg/repoze/bfg/paster.py", line 91, in command root, closer = get_root(app) File "/opt/bfg/bfgwiki/lib/python2.6/site-packages/repoze.bfg-1.1b2-py2.6.egg/repoze/bfg/scripting.py", line 11, in get_root registry = app.registry AttributeError: EnvironmentDeleterMiddleware instance has no attribute 'registry' Trying to avoid the pipeline, by calling the entry point in the app section results in: bin/paster --plugin=repoze.bfg bfgshell tutorial.ini zodb Traceback (most recent call last): File "../bin/paster", line 8, in <module> load_entry_point('PasteScript==1.7.3', 'console_scripts', 'paster')() File "/opt/bfg/bfgwiki/lib/python2.6/site-packages/PasteScript-1.7.3-py2.6.egg/paste/script/command.py", line 84, in run invoke(command, command_name, options, args[1:]) File "/opt/bfg/bfgwiki/lib/python2.6/site-packages/PasteScript-1.7.3-py2.6.egg/paste/script/command.py", line 123, in invoke exit_code = runner.run(args) File "/opt/bfg/bfgwiki/lib/python2.6/site-packages/PasteScript-1.7.3-py2.6.egg/paste/script/command.py", line 218, in run result = self.command() File "/opt/bfg/bfgwiki/lib/python2.6/site-packages/repoze.bfg-1.1b2-py2.6.egg/repoze/bfg/paster.py", line 91, in command root, closer = get_root(app) File "/opt/bfg/bfgwiki/lib/python2.6/site-packages/repoze.bfg-1.1b2-py2.6.egg/repoze/bfg/scripting.py", line 18, in get_root root = app.root_factory(environ) File "/opt/bfg/bfgwiki/lib/python2.6/site-packages/repoze.bfg-1.1b2-py2.6.egg/repoze/bfg/urldispatch.py", line 65, in __call__ return self.default_root_factory(request) File "/opt/bfg/bfgwiki/tutorial/tutorial/run.py", line 18, in get_root return finder(request.environ) AttributeError: 'dict' object has no attribute 'environ' Is there a proper way to invoke bfgshell in a ZODB project? (The code and configuration I am using is exactly from the tutorial and everything else works fine.) Thank you, Steve _______________________________________________ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev