[maemo-developers] [pymaemo] How to add PyModule_AddObject to the override file?
From: Andrea Grandi a.grandi at gmail.comDate: Thu Jul 30 14:11:25 EEST 2009
- Previous message: [pymaemo] How to add PyModule_AddObject to the override file?
- Next message: [pymaemo] How to add PyModule_AddObject to the override file?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi, > All I've to do now is to write a real MAFW_TYPE_PLUGIN_DESCRIPTOR_PUBLIC. > > I'll keep you updated if I discover something new ;) I've decided to use the second way, writing a new Python type (like described here: http://docs.python.org/extending/newtypes.html ) you can view the modified mafw.override here: http://pastebin.com/m2a280bb3 and this is how it works from Python: [sbox-FREMANTLE_X86: ~] > python2.5 Python 2.5.2 (r252:60911, Mar 16 2009, 16:36:21) [GCC 4.2.1] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mafw >>> p = mafw.PluginDescriptorPublic() >>> p.name = "ciao" >>> print p.name ciao what do you think about? If it's ok, now we'll have to make list_plugins methid to be able to use this new type. Best regards, -- Andrea Grandi email: a.grandi [AT] gmail [DOT] com website: http://www.andreagrandi.it PGP Key: http://www.andreagrandi.it/pgp_key.asc
- Previous message: [pymaemo] How to add PyModule_AddObject to the override file?
- Next message: [pymaemo] How to add PyModule_AddObject to the override file?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]