Hi boys and girls,
I am working with a friend on a project that uses calandar.db data. We want to read the id's of the collections (N9 calendars), but everytime the toString() function, which should return an unicode string, gives a segmentation fault.
Here is just an easy as possible code example:
We wrote an mail to the PySide mailing list, but got no reaction. At GIT there is a BugTracker Link, but the website seems to be down. And I am not sure (I am more or less a beginner) PySide QtMobility is wrapped from C++ version?!, because if true I am not able to fix/patch it, I have no C++ knowledge at all.Code:#!/usr/bin/env python #-*- coding: utf-8 -*- import sys from PySide import QtCore from QtMobility.Organizer import * class QtMobilityTest(QtCore.QObject): def __init__(self): QtCore.QObject.__init__(self) self.defaultManager = QOrganizerManager() self.collections = self.defaultManager.collections() print len(self.collections) for collection in self.collections: print type(collection), collection.id() print collection.id().toString() sys.exit(0) if __name__ == "__main__": app = QtCore.QCoreApplication([]) test = QtMobilityTest() app.exec_()
Is ANYONE able to help me?!
We checked alternative ways, e.g SQL, but it becomes very difficult in combination with recurring events.
I am thanking you in anticipation.![]()


Reply With Quote

