Andreas Jung wrote: > Tried to get zopyx.smartprintng.server working w/ BFG 1.2a1. This fails > badly. > Anything I am missing?
Thanks for trying it. I have fixed this on the trunk and your server now starts. For maximum forward compatibility, you'll probably eventually want to change: @bfg_view(for_=Server, request_type='GET', permission='read') to: @bfg_view(for_=Server, request_method='GET', permission='read') (ie. request_type -> request_method) > > Andreas > -------- > > aj...@suxmac2:~/src/svn.zope.org/zopyx.smartprintng.server/trunk > bin/paster serve server.ini > SmartPrintNG server started > Temp directory: > /var/folders/Ov/OvU++3BsFOaXK0Lrm8F4C++++TI/-Tmp-/zopyx.smartprintng.server > Spool directory: > /var/folders/Ov/OvU++3BsFOaXK0Lrm8F4C++++TI/-Tmp-/zopyx.smartprintng.server-spool > Available converters: ebook-calibre, fo, odt-xfc, ooxml-xfc, pdf-prince, > pdf-xinc, rtf-xfc, wml-xfc > No auth module found - serving for anonymous > Traceback (most recent call last): > File "bin/paster", line 8, in <module> > load_entry_point('PasteScript==1.7.3', 'console_scripts', 'paster')() > File > "/Users/ajung/src/svn.zope.org/zopyx.smartprintng.server/trunk/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 > "/Users/ajung/src/svn.zope.org/zopyx.smartprintng.server/trunk/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 > "/Users/ajung/src/svn.zope.org/zopyx.smartprintng.server/trunk/lib/python2.6/site-packages/PasteScript-1.7.3-py2.6.egg/paste/script/command.py", > line 218, in run > result = self.command() > File > "/Users/ajung/src/svn.zope.org/zopyx.smartprintng.server/trunk/lib/python2.6/site-packages/PasteScript-1.7.3-py2.6.egg/paste/script/serve.py", > line 276, in command > relative_to=base, global_conf=vars) > File > "/Users/ajung/src/svn.zope.org/zopyx.smartprintng.server/trunk/lib/python2.6/site-packages/PasteScript-1.7.3-py2.6.egg/paste/script/serve.py", > line 313, in loadapp > **kw) > File > "/Users/ajung/src/svn.zope.org/zopyx.smartprintng.server/trunk/lib/python2.6/site-packages/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/loadwsgi.py", > line 204, in loadapp > return loadobj(APP, uri, name=name, **kw) > File > "/Users/ajung/src/svn.zope.org/zopyx.smartprintng.server/trunk/lib/python2.6/site-packages/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/loadwsgi.py", > line 225, in loadobj > return context.create() > File > "/Users/ajung/src/svn.zope.org/zopyx.smartprintng.server/trunk/lib/python2.6/site-packages/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/loadwsgi.py", > line 625, in create > return self.object_type.invoke(self) > File > "/Users/ajung/src/svn.zope.org/zopyx.smartprintng.server/trunk/lib/python2.6/site-packages/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/loadwsgi.py", > line 110, in invoke > return fix_call(context.object, context.global_conf, > **context.local_conf) > File > "/Users/ajung/src/svn.zope.org/zopyx.smartprintng.server/trunk/lib/python2.6/site-packages/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/util/fixtypeerror.py", > line 57, in fix_call > val = callable(*args, **kw) > File > "/Users/ajung/src/svn.zope.org/zopyx.smartprintng.server/trunk/zopyx/smartprintng/server/run.py", > line 38, in app > return make_app(get_root, zopyx.smartprintng.server, options=kw) > File > "/Users/ajung/src/svn.zope.org/zopyx.smartprintng.server/trunk/lib/python2.6/site-packages/repoze.bfg-1.2a1-py2.6.egg/repoze/bfg/configuration.py", > line 1523, in make_app > config.load_zcml(zcml_file) > File > "/Users/ajung/src/svn.zope.org/zopyx.smartprintng.server/trunk/lib/python2.6/site-packages/repoze.bfg-1.2a1-py2.6.egg/repoze/bfg/configuration.py", > line 323, in load_zcml > xmlconfig.file(filename, package, execute=True) > File > "/Users/ajung/src/svn.zope.org/zopyx.smartprintng.server/trunk/lib/python2.6/site-packages/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py", > line 649, in file > context.execute_actions() > File > "/Users/ajung/src/svn.zope.org/zopyx.smartprintng.server/trunk/lib/python2.6/site-packages/zope.configuration-3.6.0-py2.6.egg/zope/configuration/config.py", > line 605, in execute_actions > callable(*args, **kw) > File > "/Users/ajung/src/svn.zope.org/zopyx.smartprintng.server/trunk/lib/python2.6/site-packages/repoze.bfg-1.2a1-py2.6.egg/repoze/bfg/configuration.py", > line 897, in scan > register_decorations(name, ob) > File > "/Users/ajung/src/svn.zope.org/zopyx.smartprintng.server/trunk/lib/python2.6/site-packages/repoze.bfg-1.2a1-py2.6.egg/repoze/bfg/configuration.py", > line 885, in register_decorations > self.add_view(view=ob, _info=_info, **setting) > File > "/Users/ajung/src/svn.zope.org/zopyx.smartprintng.server/trunk/lib/python2.6/site-packages/repoze.bfg-1.2a1-py2.6.egg/repoze/bfg/configuration.py", > line 590, in add_view > view_iface, name, info=_info) > File > "/Users/ajung/src/svn.zope.org/zopyx.smartprintng.server/trunk/lib/python2.6/site-packages/zope.component-3.8.0-py2.6.egg/zope/component/registry.py", > line 184, in registerAdapter > required = _getAdapterRequired(factory, required) > File > "/Users/ajung/src/svn.zope.org/zopyx.smartprintng.server/trunk/lib/python2.6/site-packages/zope.component-3.8.0-py2.6.egg/zope/component/registry.py", > line 423, in _getAdapterRequired > raise TypeError("Required specification must be a " > zope.configuration.config.ConfigurationExecutionError: <type > 'exceptions.TypeError'>: Required specification must be a specification > or class. > in: > File > "/Users/ajung/src/svn.zope.org/zopyx.smartprintng.server/trunk/zopyx/smartprintng/server/configure.zcml", > line 7.2-7.21 > <scan package="."/> > > _______________________________________________ > 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