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

Ian Ford iford@US.NET
Thu, 2 Aug 2001 13:06:44 -0700


Same error already tried it.
thanks though

-----Original Message-----
From: Thomas Olsen [mailto:tol@tanghus.dk]
Sent: Thursday, August 02, 2001 1:05 PM
To: Ian Ford; zope-cmf@zope.org
Subject: Re: [Zope-CMF] Major Error in code...... Help....


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=3Dcontainer
> ##bind context=3Dcontext
> ##bind namespace=3D
> ##bind script=3Dscript
> ##bind subpath=3Dtraverse_subpath
> ##parameters=3DREQUEST,
> RESPONSE,subject,start,end,title,desc,actual_time_worked,
hours_worked,
> scheduled_pto,unscheduled_pto, holiday_hours, fmla_hours, total_hours,
> scheduled_hours
> ##title=3D
> ##
>
> context.edit(subject=3Dsubject
>              , start=3Dstart
>              , end=3Dend
>              , title=3Dtitle
>              , Description=3Ddesc

What happens if you instead do:

              , desc=3Ddesc

>              , actual_time_worked=3Dactual_time_worked
>              , hours_worked=3Dhours_worked
>              , scheduled_pto=3Dscheduled_pto
>              , unscheduled_pto=3Dunscheduled_pto
>              , holiday_hours=3Dholiday_hours
>              , fmla_hours=3Dfmla_hours
>              , scheduled_hours=3Dscheduled_hours
>              , total_hours=3Dtotal_hours)
>

--=20
Regards
Thomas Olsen