Logo Search packages:      
Sourcecode: zeitgeist version File versions

def zeitgeist::dbusutils::EventDict::convert_result_to_dict (   cls,
  result_tuple 
)

Method to convert a sql result tuple into an EventDict 

Definition at line 157 of file dbusutils.py.

00157                                                    :
            """ Method to convert a sql result tuple into an EventDict """
            return cls(
                  timestamp = result_tuple[1],
                  uri = result_tuple[0],
                  text = result_tuple[7] or os.path.basename(result_tuple[0]), # FIXME: why not u"" as alternative value?
                  source = result_tuple[5], 
                  content = result_tuple[3],
                  mimetype = result_tuple[8],
                  tags = result_tuple[12] or u"",
                  comment = u"",
                  bookmark = bool(result_tuple[11]),
                  use = result_tuple[4], # usage is determined by the event Content type # event.item.content.value
                  icon = result_tuple[9],
                  app = result_tuple[10],
                  origin = result_tuple[6],
            )
            )


Generated by  Doxygen 1.6.0   Back to index