Re: [Repoze-dev] BFG 0.9.1 / chameleon: render() takes exactly 1 non-keyword argument
2009/6/9 Chris Shenton ch...@shenton.org: I found it broke for me with .core at 1.0b33 and b34. Cache invalidation as fixed in 1.0b35. \malthe ___ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev
Re: [Repoze-dev] BFG 0.9.1 / chameleon: render() takes exactly 1 non-keyword argument
Chris McDonough chr...@plope.com writes: Hmm. Are you sure? Ala at the top level of your package: find . -name *.cache|xargs rm -f find . -name *.pt.py|xargs rm -f Yeah, just did the build out on a different box, did finds to make sure, did find...rm anyway. Same. I've gotten it to work with slightly older versions of chameleon, but see it's using the older .cache files. In my buildout.cfg I used a [buildout] 'versions' declaration and: [versions] chameleon.core = 1.0b32 chameleon.zpt = 1.0b16 I found it broke for me with .core at 1.0b33 and b34. Thanks. ___ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev
[Repoze-dev] BFG 0.9.1 / chameleon: render() takes exactly 1 non-keyword argument
I've been plugging along with a routes and SQL based app, with BFG 0.8.0. I just changed my buildout.cfg to get BFG 0.9.1 -- and any new versions of other packages -- but it's now throwing exceptions when trying to render. I've removed any *.py, *.pyc and *.cache files from my templates/ dir, but no help. Paster starts up but when I try to access the top page, it bombs with this excerpt: Exception happened during processing of request from ('127.0.0.1', 57115) ... File /usr/local/cshenton/Projects/koansys/accounting-0.4/accounting/accounting/views.py, line 30, in home master=get_template('templates/master.pt'), ... File /usr/local/cshenton/Projects/koansys/accounting-0.4/eggs/chameleon.core-1.0b34-py2.6.egg/chameleon/core/template.py, line 305, in cook_and_render args, slots, macro, global_scope) File /usr/local/cshenton/Projects/koansys/accounting-0.4/eggs/chameleon.core-1.0b34-py2.6.egg/chameleon/core/template.py, line 182, in cook_and_render return func(econtext, rcontext) File /usr/local/cshenton/Projects/koansys/accounting-0.4/accounting/accounting/templates/home.pt.py, line 33, in render _metal.render(_tmp, _out=_out, _write=_write, _domain=_domain, econtext=econtext) TypeError: render() takes exactly 1 non-keyword argument (2 given) Maybe I'm getting incompatible versions of various packages with my buildout: [buildout] find-links = http://dist.repoze.org/bfg/current/simple http://pypi.python.org/packages/source/z/zope.sqlalchemy/ http://pypi.python.org/packages/source/t/transaction/ http://pypi.python.org/packages/source/S/SQLAlchemy/ http://pypi.python.org/packages/source/r/repoze.who/ http://formalchemy.googlecode.com/files/FormAlchemy-1.2.tar.gz parts = bfg develop = accounting [bfg] recipe = zc.recipe.egg index = http://dist.repoze.org/bfg/current/simple dependent-scripts = true eggs= repoze.bfg accounting formalchemy interpreter = python-bfg Any suggestions? Thanks! ___ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev
Re: [Repoze-dev] BFG 0.9.1 / chameleon: render() takes exactly 1 non-keyword argument
On 6/8/09 7:10 PM, Chris Shenton wrote: I've been plugging along with a routes and SQL based app, with BFG 0.8.0. I just changed my buildout.cfg to get BFG 0.9.1 -- and any new versions of other packages -- but it's now throwing exceptions when trying to render. I've removed any *.py, *.pyc and *.cache files from my templates/ dir, but no help. Hmm. Are you sure? Ala at the top level of your package: find . -name *.cache|xargs rm -f find . -name *.pt.py|xargs rm -f - C Paster starts up but when I try to access the top page, it bombs with this excerpt: Exception happened during processing of request from ('127.0.0.1', 57115) ... File /usr/local/cshenton/Projects/koansys/accounting-0.4/accounting/accounting/views.py, line 30, in home master=get_template('templates/master.pt'), ... File /usr/local/cshenton/Projects/koansys/accounting-0.4/eggs/chameleon.core-1.0b34-py2.6.egg/chameleon/core/template.py, line 305, in cook_and_render args, slots, macro, global_scope) File /usr/local/cshenton/Projects/koansys/accounting-0.4/eggs/chameleon.core-1.0b34-py2.6.egg/chameleon/core/template.py, line 182, in cook_and_render return func(econtext, rcontext) File /usr/local/cshenton/Projects/koansys/accounting-0.4/accounting/accounting/templates/home.pt.py, line 33, in render _metal.render(_tmp, _out=_out, _write=_write, _domain=_domain, econtext=econtext) TypeError: render() takes exactly 1 non-keyword argument (2 given) Maybe I'm getting incompatible versions of various packages with my buildout: [buildout] find-links = http://dist.repoze.org/bfg/current/simple http://pypi.python.org/packages/source/z/zope.sqlalchemy/ http://pypi.python.org/packages/source/t/transaction/ http://pypi.python.org/packages/source/S/SQLAlchemy/ http://pypi.python.org/packages/source/r/repoze.who/ http://formalchemy.googlecode.com/files/FormAlchemy-1.2.tar.gz parts = bfg develop = accounting [bfg] recipe = zc.recipe.egg index = http://dist.repoze.org/bfg/current/simple dependent-scripts = true eggs= repoze.bfg accounting formalchemy interpreter = python-bfg Any suggestions? Thanks! ___ 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