I've also filed a bug with Twisted's upstream with the following code
for JellyToNode:

Below line 267:
-----
elif objType is types.BooleanTypes:
     node = self.document.createElement("int")
     node.setAttribute("value", int(obj))
-----

Until it's fixed in Twisted, can everyone be careful not to try to
serialize boolean objects? Just use TRUE/FALSE (all caps) until it's
fixed please.

Aubin

On Tue, Oct 21, 2003 at 08:16:20AM -0700, [EMAIL PROTECTED] wrote:
> Update of /cvsroot/freevo/freevo/src/tv
> In directory sc8-pr-cvs1:/tmp/cvs-serv16059
> 
> Modified Files:
>       tvguide.py 
> Log Message:
> A workaround for the problem wherein Twisted Python cannot serialize
> boolean types. 
> 
> 
> Index: tvguide.py
> ===================================================================
> RCS file: /cvsroot/freevo/freevo/src/tv/tvguide.py,v
> retrieving revision 1.17
> retrieving revision 1.18
> diff -C2 -d -r1.17 -r1.18
> *** tvguide.py        18 Oct 2003 09:34:37 -0000      1.17
> --- tvguide.py        21 Oct 2003 15:16:17 -0000      1.18
> ***************
> *** 10,13 ****
> --- 10,17 ----
>   # -----------------------------------------------------------------------
>   # $Log$
> + # Revision 1.18  2003/10/21 15:16:17  outlyer
> + # A workaround for the problem wherein Twisted Python cannot serialize
> + # boolean types.
> + #
>   # Revision 1.17  2003/10/18 09:34:37  dischi
>   # show the current recodings in the guide, RECORD toggles record and remove
> ***************
> *** 310,316 ****
>                   for p in t.programs:
>                       if p in self.scheduled_programs:
> !                         p.scheduled = True
>                       else:
> !                         p.scheduled = False
>               except:
>                   pass
> --- 314,323 ----
>                   for p in t.programs:
>                       if p in self.scheduled_programs:
> !                         p.scheduled = TRUE # DO NOT change this to 'True' Twisted
> !                                            # does not support boolean objects and 
> !                                            # it will break under Python 2.3
>                       else:
> !                         p.scheduled = FALSE # Same as above; leave as 'FALSE' until
> !                                             # Twisted includes Boolean
>               except:
>                   pass
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by OSDN developer relations
> Here's your chance to show off your extensive product knowledge
> We want to know what you know. Tell us and you have a chance to win $100
> http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
> _______________________________________________
> Freevo-cvslog mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/freevo-cvslog


-------------------------------------------------------
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
_______________________________________________
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to