parameters: (self, curr_buffer, dom_node, version)
docstring: From the XML embedded image text to the SourceBuffer
docstring_summary: From the XML embedded image text to the SourceBuffer
docstring_tokens: From the XML embedded image text to the SourceBuffer
function: def image_deserialize(self, curr_buffer, dom_node, version):
          """From the XML embedded image text to the SourceBuffer"""
          char_offset = int(dom_node.attributes["char_offset"].value)
          if dom_node.hasAttribute(cons.TAG_JUSTIFICATION): justification = dom_node.attributes[cons.TAG_JUSTIFICATION].value
          else: justification = cons.TAG_PROP_LEFT
          if dom_node.hasAttribute("anchor"):
              pixbuf = gtk.gdk.pixbuf_new_from_file_at_size(cons.ANCHOR_CHAR, self.dad.anchor_size, self.dad.anchor_size)
              pixbuf.anchor = dom_node.attributes["anchor"].value
          elif dom_node.hasAttribute("filename"):
              pixbuf = gtk.gdk.pixbuf_new_from_file_at_size(cons.FILE_CHAR, self.dad.embfile_size, self.dad.embfile_size)
              pixbuf.filename = dom_node.attributes["filename"].value
              pixbuf.embfile = base64.b64decode(dom_node.firstChild.data)
              pixbuf.time = float(dom_node.attributes["time"].value) if dom_node.hasAttribute("time") else 0
          else:
              if version == 2: pixbuf = get_pixbuf_from_encoded_buffer(dom_node.firstChild.data)
              else: pixbuf = get_pixbuf_from_png_encoded_string(dom_node.firstChild.data)
          if pixbuf:
              pixbuf.link = dom_node.attributes["link"].value if dom_node.hasAttribute("link") else ""
              self.dad.image_insert(curr_buffer.get_iter_at_offset(char_offset),
                  pixbuf,
                  image_justification=justification,
                  text_buffer=curr_buffer)
function_tokens: def image_deserialize ( self , curr_buffer , dom_node , version ) : char_offset = int ( dom_node . attributes [ "char_offset" ] . value ) if dom_node . hasAttribute ( cons . TAG_JUSTIFICATION ) : justification = dom_node . attributes [ cons . TAG_JUSTIFICATION ] . value else : justification = cons . TAG_PROP_LEFT if dom_node . hasAttribute ( "anchor" ) : pixbuf = gtk . gdk . pixbuf_new_from_file_at_size ( cons . ANCHOR_CHAR , self . dad . anchor_size , self . dad . anchor_size ) pixbuf . anchor = dom_node . attributes [ "anchor" ] . value elif dom_node . hasAttribute ( "filename" ) : pixbuf = gtk . gdk . pixbuf_new_from_file_at_size ( cons . FILE_CHAR , self . dad . embfile_size , self . dad . embfile_size ) pixbuf . filename = dom_node . attributes [ "filename" ] . value pixbuf . embfile = base64 . b64decode ( dom_node . firstChild . data ) pixbuf . time = float ( dom_node . attributes [ "time" ] . value ) if dom_node . hasAttribute ( "time" ) else 0 else : if version == 2 : pixbuf = get_pixbuf_from_encoded_buffer ( dom_node . firstChild . data ) else : pixbuf = get_pixbuf_from_png_encoded_string ( dom_node . firstChild . data ) if pixbuf : pixbuf . link = dom_node . attributes [ "link" ] . value if dom_node . hasAttribute ( "link" ) else "" self . dad . image_insert ( curr_buffer . get_iter_at_offset ( char_offset ) , pixbuf , image_justification = justification , text_buffer = curr_buffer )