parameters: (self, field, value, as_string, ooo_builder, REQUEST,
                        render_prefix, attr_dict, local_name, escape=False)
return_statement: return text_node
docstring: Return a field value rendered in odt format as read-only mode.
        - as_string return value as string or as xml object
        - attr_dict can be used for additional attributes (like style).
        - ooo_builder wrapper of ODF zipped archive usefull to insert images
        - local_name local-name of the node returned by this render
docstring_summary: Return a field value rendered in odt format as read-only mode.
        - as_string return value as string or as xml object
        - attr_dict can be used for additional attributes (like style).
        - ooo_builder wrapper of ODF zipped archive usefull to insert images
        - local_name local-name of the node returned by this render
docstring_tokens: Return a field value rendered in odt format as read - only mode . - as_string return value as string or as xml object - attr_dict can be used for additional attributes ( like style ) . - ooo_builder wrapper of ODF zipped archive usefull to insert images - local_name local - name of the node returned by this render
function: def render_odt_view(self, field, value, as_string, ooo_builder, REQUEST,
                        render_prefix, attr_dict, local_name, escape=False):
      """
        Return a field value rendered in odt format as read-only mode.
        - as_string return value as string or as xml object
        - attr_dict can be used for additional attributes (like style).
        - ooo_builder wrapper of ODF zipped archive usefull to insert images
        - local_name local-name of the node returned by this render
      """
      if attr_dict is None:
        attr_dict = {}
      if isinstance(value, str):
        #required by lxml
        value = value.decode('utf-8')
      if value is None:
        value = ''
      text_node = Element('{%s}%s' % (TEXT_URI, local_name), nsmap=NSMAP)
      if escape:
        RE_OOO_ESCAPE.sub(OOoEscaper(text_node), value)
      else:
        text_node.text = value
      text_node.attrib.update(attr_dict)
      if as_string:
        return etree.tostring(text_node)
      return text_node
function_tokens: def render_odt_view ( self , field , value , as_string , ooo_builder , REQUEST , render_prefix , attr_dict , local_name , escape = False ) : if attr_dict is None : attr_dict = { } if isinstance ( value , str ) : #required by lxml value = value . decode ( 'utf-8' ) if value is None : value = '' text_node = Element ( '{%s}%s' % ( TEXT_URI , local_name ) , nsmap = NSMAP ) if escape : RE_OOO_ESCAPE . sub ( OOoEscaper ( text_node ) , value ) else : text_node . text = value text_node . attrib . update ( attr_dict ) if as_string : return etree . tostring ( text_node ) return text_node