[Zope-CMF] FSPythonScript Problems

Chris Withers chrisw@nipltd.com
Fri, 1 Jun 2001 10:22:22 +0100


Hi,

I've got a file, addtoFavourites.py, which starts as follows on disk:

## Script (Python) "addtoFavorites"
##title=Add item to favourites
##bind container=container
##bind context=context
##bind namespace=_
##bind script=script
##bind subpath=traverse_subpath
##parameters=

...however, when I look at the resulting Zope object, the binding for
namespace and the title appear to have been lost :-S

Also, if I click the 'Try It' tab, I get the following error:
Error Type: AttributeError
Error Value: 'string' object has no attribute 'split'
  File D:\ZOPE\23228D~1.2\lib\python\DocumentTemplate\DT_In.py, line 650, in
renderwob
    (Object: ZScriptHTML_tryParams)
  File D:\ChrisW\Zope\current\Products\CMFCore\FSPythonScript.py, line 194,
in ZScriptHTML_tryParams
    (Object: addtoFavorites)
AttributeError: (see above)

Any ideas?

cheers,

Chris