[Zope-CMF] Not able to find a python script

Jens Vagelpohl jens@zope.com
Thu, 27 Sep 2001 19:42:15 -0400


is this a typo: ##parameters=RESPONCE,...

that should be RESPONSE.

furthermore, i would not pass that into the script but simply use REQUEST 
and get at RESPONSE by doing REQUEST.RESPONSE...

jens


On Thursday, September 27, 2001, at 01:56 , Ian Ford wrote:

> I have made a CMF product to produce PO's for a company, but when I try
> to store the information in the catalog via the python script. Zope
> seems not to be able to find the script.
>
> I have checked the Properties in the CMF Skins Tool to check to see if
> the folder has been added and it has.
>
> So right now I am totally lost.
>
> Here is a copy of the Python Script that I am trying to use.
>
> <CODE>
> ## Script (Python) "po_submit"
> ##bind container=container
> ##bind context=context
> ##bind namespace=
> ##bind script=script
> ##bind subpath=traverse_subpath
> ##parameters=RESPONCE,REQUEST,it_val,item,total,req_type,po_num,loccente
> r,req_date,budget,submitted_by,approved_by,approved_date
> ##title=
> ##
>
> context.edit(item_num=it_val
>             ,amount=item.amount
>             ,stock_number=item.stock_number
>             ,desc=item.desc
>             ,unit_cost=item.unit_cost
>             ,total=total
>             ,req_type=req_type
>             ,po_num=po_num
>             ,lcenter=loccenter
>             ,req_date=req_date
>             ,budget_cat=budget.budget_cat
>             ,pfunding=budget.pfunding
>             ,submitted_by=submitted_by
>             ,approved_by=approved_by
>             ,approved_date=approved_date
>             )
>
> RESPONSE.redirect('%s/view' % context.absolute_url())
>
> <CODE>
>
> <ERROR>
>
> Zope Error
> Zope has encountered an error while publishing this resource.
> Internal Error
> Sorry, an internal error occurred in this Zope resource.
> <trace Back>
> Traceback (innermost last):
>   File C:\Zope\lib\python\ZPublisher\Publish.py, line 223, in
> publish_module
>   File C:\Zope\lib\python\ZPublisher\Publish.py, line 187, in publish
>   File C:\Zope\lib\python\Zope\__init__.py, line 221, in
> zpublisher_exception_hook
>     (Object: DynamicType)
>   File C:\Zope\lib\python\ZPublisher\Publish.py, line 171, in publish
>   File C:\Zope\lib\python\ZPublisher\mapply.py, line 155, in mapply
>     (Object: po_send)
>   File C:\Zope\lib\python\ZPublisher\Publish.py, line 117, in
> missing_name
>   File C:\Zope\lib\python\ZPublisher\HTTPResponse.py, line 565, in
> badRequestError
> InternalError: (see above)
> <trace Back>
> <ERROR>
>
>
> Thank you,
>
> Ian Ford
>
>
> _______________________________________________
> Zope-CMF maillist  -  Zope-CMF@zope.org
> http://lists.zope.org/mailman/listinfo/zope-cmf
>
> See http://www.zope.org/Products/PTK/Tracker for bug reports and feature 
> requests