[Zope-CMF] Error Value: view() takes exactly 1 non-keyword argument (3 given)
Tres Seaver
tseaver@palladion.com
Wed, 20 Jun 2001 07:36:08 -0400
Norman Khine wrote:
> Hello, I had a new cvs checkout from the CMF, and have setup the metadata
> elements correctly. But everytime I try to publish a document I get the
> following error
>
> Error Value: view() takes exactly 1 non-keyword argument (3 given)
>
> Traceback (innermost last):
> File /usr/home/dsuk5/zope/2.3.3b1/lib/python/ZPublisher/Publish.py, line
> 223, in publish_module
> File /usr/home/dsuk5/zope/2.3.3b1/lib/python/ZPublisher/Publish.py, line
> 187, in publish
> File /usr/home/dsuk5/zope/2.3.3b1/lib/python/Zope/__init__.py, line 221,
> in zpublisher_exception_hook
> (Object: DynamicType)
> File /usr/home/dsuk5/zope/2.3.3b1/lib/python/ZPublisher/Publish.py, line
> 171, in publish
> File /usr/home/dsuk5/zope/2.3.3b1/lib/python/ZPublisher/mapply.py, line
> 160, in mapply
> (Object: content_status_modify)
> File /usr/home/dsuk5/zope/2.3.3b1/lib/python/ZPublisher/Publish.py, line
> 112, in call_object
> (Object: content_status_modify)
> File
> /usr/home/dsuk5/zope/2.3.3b1/lib/python/Shared/DC/Scripts/Bindings.py, line
> 324, in __call__
> (Object: content_status_modify)
> File
> /usr/home/dsuk5/zope/2.3.3b1/lib/python/Shared/DC/Scripts/Bindings.py, line
> 354, in _bindAndExec
> (Object: content_status_modify)
> File
> /usr/home/dsuk5/zope/2.3.3b1/lib/python/Products/CMFCore/FSPythonScript.py,
> line 187, in _exec
> (Object: content_status_modify)
> (Info: ({'script': <FSPythonScript instance at 8d140c0>, 'context':
> <Document instance at 8c5ed60>, 'container': <CMFSite instance at 8c5e0a0>,
> 'traverse_subpath': []}, ('publish', ''), {}, ('',)))
> File Script (Python), line 9, in content_status_modify
> TypeError: (see above)
It is a bug in the converted Python script; I fixed it last night while
preparing the release.
Tres.
--===============================================================
Tres Seaver tseaver@digicool.com
Digital Creations "Zope Dealers" http://www.zope.org