Example #1
0
 def to_xml(cls, value, tns, parent_elt, name="retval"):
     string_to_xml(cls, str(value), tns, parent_elt, name)
Example #2
0
 def to_xml(cls, value, tns, parent_elt, name="retval"):
     string_to_xml(cls, str(bool(value)).lower(), tns, parent_elt, name)
Example #3
0
    def to_xml(cls, value, tns, parent_elt, name="retval"):
        if not isinstance(value, unicode):
            value = unicode(value, string_encoding)

        string_to_xml(cls, value, tns, parent_elt, name)
Example #4
0
 def to_xml(cls, value, tns, parent_elt, name="retval"):
     string_to_xml(cls, value.isoformat("T"), tns, parent_elt, name)
Example #5
0
 def to_xml(cls, value, tns, parent_elt, name='retval'):
     string_to_xml(cls, value.isoformat('T'), tns, parent_elt, name)
Example #6
0
 def to_xml(cls, value, tns, name='retval'):
     return string_to_xml(cls, str(bool(value)).lower(), tns, name)
Example #7
0
 def to_xml(cls, value, tns, name='retval'):
     return string_to_xml(cls, str(value), tns, name)
Example #8
0
 def to_xml(cls, value, tns, name='retval'):
     return string_to_xml(cls, value.isoformat('T'), tns, name)
Example #9
0
    def to_xml(cls, value, tns, name='retval'):
        if not isinstance(value, unicode):
            value = unicode(value, string_encoding)

        return string_to_xml(cls, value, tns, name)