Fwd: Empty checkboxes

Christopher Clarke <cclarke-wYfHrJ5eQDBWk0Htik3J/[email protected]> Tue, 27 May 2008 10:30:22 -0400
Newsgroups gmane.comp.python.spyce.general
Message-ID <[email protected]>
--===============0445045638==
Content-Type: multipart/alternative; boundary=Apple-Mail-1--484294658


--Apple-Mail-1--484294658
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed;
	delsp=yes
Content-Transfer-Encoding: 7bit



Begin forwarded message:

> From: Christopher Clarke <cclarke-wYfHrJ5eQDBWk0Htik3J/[email protected]>
> Date: May 27, 2008 10:24:47 AM GMT-04:00
> To: <[email protected]> <[email protected]>
> Subject: Re: [Spyce-users] Empty checkboxes
>
> Hi
> I use
> api.request.postget1('check_box_name')
> to get the value or None
> I never put/pass the checkbox in your handler argument list
> Regards
> Chris
>
> On May 27, 2008, at 6:36 AM, <[email protected]> <[email protected] 
> > wrote:
>
>> Hi all,
>>
>> I'm quite new to Spyce but know Python pretty well. I have  
>> (probably) a
>> beginner's problem with how Spyce execute; when I submit a form  
>> with an
>> active handler, Spyce complains about "spyceCompile.py:1590, in
>> _marshallArgs: Required parameter ... not present in request" when I
>> leave a checkbox empty. How do I handle empty checkboxes in the  
>> submit
>> method?
>>
>> Regards,
>> Sten Rosendahl * Software Configuration Manager * SunGard FRONT ARENA
>>
>>
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by: Microsoft
>> Defy all challenges. Microsoft(R) Visual Studio 2008.
>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>> _______________________________________________
>> Spyce-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/spyce-users
>


--Apple-Mail-1--484294658
Content-Type: text/html;
	charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

<html><body style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; =
-webkit-line-break: after-white-space; "><br><div><br><div>Begin =
forwarded message:</div><br =
class=3D"Apple-interchange-newline"><blockquote type=3D"cite"><div><div =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; "><font face=3D"Helvetica" size=3D"3" color=3D"#000000" =
style=3D"font: 12.0px Helvetica; color: #000000"><b>From: =
</b></font><font face=3D"Helvetica" size=3D"3" style=3D"font: 12.0px =
Helvetica">Christopher Clarke &lt;<a =
href=3D"mailto:cclarke-wYfHrJ5eQDBWk0Htik3J/[email protected]">cclarke-wYfHrJ5eQDBWk0Htik3J/[email protected]</a>&gt;</font></=
div><div style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: =
0px; margin-left: 0px; "><font face=3D"Helvetica" size=3D"3" =
color=3D"#000000" style=3D"font: 12.0px Helvetica; color: =
#000000"><b>Date: </b></font><font face=3D"Helvetica" size=3D"3" =
style=3D"font: 12.0px Helvetica">May 27, 2008 10:24:47 AM =
GMT-04:00</font></div><div style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; "><font face=3D"Helvetica" =
size=3D"3" color=3D"#000000" style=3D"font: 12.0px Helvetica; color: =
#000000"><b>To: </b></font><font face=3D"Helvetica" size=3D"3" =
style=3D"font: 12.0px Helvetica">&lt;<a =
href=3D"mailto:[email protected]">[email protected]</a>&=
gt; &lt;<a =
href=3D"mailto:[email protected]">[email protected]</a>&=
gt;</font></div><div style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; "><font face=3D"Helvetica" =
size=3D"3" color=3D"#000000" style=3D"font: 12.0px Helvetica; color: =
#000000"><b>Subject: </b></font><font face=3D"Helvetica" size=3D"3" =
style=3D"font: 12.0px Helvetica"><b>Re: [Spyce-users] Empty =
checkboxes</b></font></div><div style=3D"margin-top: 0px; margin-right: =
0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; =
"><br></div> </div>Hi<br>I =
use<br>api.request.postget1('check_box_name')<br>to get the value or =
None<br>I never put/pass the checkbox in your handler argument =
list<br>Regards<br>Chris<br><br>On May 27, 2008, at 6:36 AM, &lt;<a =
href=3D"mailto:[email protected]">[email protected]</a>&=
gt; &lt;<a =
href=3D"mailto:[email protected]">[email protected]</a>&=
gt; wrote:<br><br><blockquote type=3D"cite">Hi =
all,<br></blockquote><blockquote =
type=3D"cite"><br></blockquote><blockquote type=3D"cite">I'm quite new =
to Spyce but know Python pretty well. I have (probably) =
a<br></blockquote><blockquote type=3D"cite">beginner's problem with how =
Spyce execute; when I submit a form with an<br></blockquote><blockquote =
type=3D"cite">active handler, Spyce complains about =
"spyceCompile.py:1590, in<br></blockquote><blockquote =
type=3D"cite">_marshallArgs: Required parameter ... not present in =
request" when I<br></blockquote><blockquote type=3D"cite">leave a =
checkbox empty. How do I handle empty checkboxes in the =
submit<br></blockquote><blockquote =
type=3D"cite">method?<br></blockquote><blockquote =
type=3D"cite"><br></blockquote><blockquote =
type=3D"cite">Regards,<br></blockquote><blockquote type=3D"cite">Sten =
Rosendahl * Software Configuration Manager * SunGard FRONT =
ARENA<br></blockquote><blockquote =
type=3D"cite"><br></blockquote><blockquote =
type=3D"cite"><br></blockquote><blockquote =
type=3D"cite"><br></blockquote><blockquote =
type=3D"cite">------------------------------------------------------------=
-------------<br></blockquote><blockquote type=3D"cite">This SF.net =
email is sponsored by: Microsoft<br></blockquote><blockquote =
type=3D"cite">Defy all challenges. Microsoft(R) Visual Studio =
2008.<br></blockquote><blockquote type=3D"cite"><a =
href=3D"http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/">http://cl=
k.atdmt.com/MRT/go/vse0120000070mrt/direct/01/</a><br></blockquote><blockq=
uote =
type=3D"cite">_______________________________________________<br></blockqu=
ote><blockquote type=3D"cite">Spyce-users mailing =
list<br></blockquote><blockquote type=3D"cite"><a =
href=3D"mailto:[email protected]">[email protected]=
forge.net</a><br></blockquote><blockquote type=3D"cite"><a =
href=3D"https://lists.sourceforge.net/lists/listinfo/spyce-users">https://=
lists.sourceforge.net/lists/listinfo/spyce-users</a><br></blockquote><br><=
/blockquote></div><br></body></html>=

--Apple-Mail-1--484294658--


--===============0445045638==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
--===============0445045638==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Spyce-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spyce-users

--===============0445045638==--