[Kde-pim] Hooks for Akonadi resource using Python

Mario Santagiuliana fedora at marionline.it
Wed Aug 17 17:14:58 BST 2011


Hi,
I'm trying to write an akonadi resource using python, like you know...

In the standard cpp akonadi resource template I see that there is an hook, 
if I understand correctly:

AKONADI_RESOURCE_MAIN( ResourceBase )

I don't understand how I can reproduce an hook for python...I can create my 
python class, I can create various methods, for example "configure" (which 
should be call if I create my resource using akonadi panel and I click on 
Edit button for the configuration), just to understand:

class Test( Akonadi.ResourceBase)
	def __init__( self, id ):
		#code

	def configure( self, id ):
		#code

def main():
	#code
#code

the main function is similar to main function in my attachment of my 
previous email:
http://markmail.org/message/trbs2ikk2fw6hn5r

How can I create this hook?
Does akonadi call the resource and pass to them options like in command 
line? For example to call the configuration:

akonadi_mypythonresource_resource --configure opts opts

Thank you and sorry for my bad English...
-- 
Mario Santagiuliana
www.marionline.it
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20110817/bbaf533d/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