[Zope-CMF] Major Error in code...... Help....

Thomas Olsen tol@tanghus.dk
Thu, 2 Aug 2001 22:04:38 +0200


On Thursday 02 August 2001 17:20, Ian Ford wrote:
> Error Type: TypeError
> Error Value: unexpected keyword argument: Description
>
> (Code for the timecard_edit.py file)
> ## Script (Python) "timecard_edit"
> ##bind container=container
> ##bind context=context
> ##bind namespace=
> ##bind script=script
> ##bind subpath=traverse_subpath
> ##parameters=REQUEST,
> RESPONSE,subject,start,end,title,desc,actual_time_worked, hours_worked,
> scheduled_pto,unscheduled_pto, holiday_hours, fmla_hours, total_hours,
> scheduled_hours
> ##title=
> ##
>
> context.edit(subject=subject
>              , start=start
>              , end=end
>              , title=title
>              , Description=desc

What happens if you instead do:

              , desc=desc

>              , actual_time_worked=actual_time_worked
>              , hours_worked=hours_worked
>              , scheduled_pto=scheduled_pto
>              , unscheduled_pto=unscheduled_pto
>              , holiday_hours=holiday_hours
>              , fmla_hours=fmla_hours
>              , scheduled_hours=scheduled_hours
>              , total_hours=total_hours)
>

-- 
Regards
Thomas Olsen