[Kde-pim] Python Akonadi Resource schemas

Kevin Krammer kevin.krammer at gmx.at
Sat Aug 20 13:41:37 BST 2011


On Saturday, 2011-08-20, Mario Santagiuliana wrote:
> In data 20/8/2011 13:56:01, Kevin Krammer ha scritto:
> > You can probably debug this better using Akonadiconsole.
> > Check that you can see the resource on the first tab. Then check if you
> > see  its collection on the second tab.
> > 
> > If not turn on debugging on the Debugger tab and run synchronize on the
> > resource (first tab again).
> > The Debugger tab then shows the data communication between resource and
> > Akonadi.
> > With that we can probably figure out what isn't working properly.
> 
> Thank you for your tip!
> 
> I can add the resource using normal akonadi control panel or
> akonadiconsole. In the browser tab I can't see my collection...If I click
> on "synchronize collection three" I can see it but not the item in the
> collecion (maybe there is something wrong in item retrieve...I just see an
> error...I push a little commit now).

retrieveItems and retrieveItem are misspelled ("e" missing).
And you need to set the parent collection on the items in retrieveItem:

item.setParentCollection( collection )
items.append( item )

Cheers,
Kevin

-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20110820/deddf740/attachment.sig>
-------------- next part --------------
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/


More information about the kde-pim mailing list