[maemo-developers] [pymaemo] Python-mafw overrides

From: Andrea Grandi a.grandi at gmail.com
Date: Tue Jul 21 14:12:33 EEST 2009
Hi,

2009/7/21 Anderson Lizardo <anderson.lizardo at openbossa.org>:
> On Tue, Jul 21, 2009 at 6:27 AM, Andrea Grandi<a.grandi at gmail.com> wrote:
>> Hi all,
>>
>> I cannot understand one particular thing about python-mafw
>> overrides.... I see that mafw_registry_get_instance() is overridden,
>> because it returns a particular object (MafwRegistry), but  for
>> example mafw_registry_get_extension_by_uuid() is not overridden and it
>> returns a custom object too (MafwExtension).
>>
>> The override is just missing or there is something else different
>> between the structure of these two methods?
>
> mafw_registry_get_instance() is overriden only because it always
> returns the same object and thus become a static method on the python
> side.

could you please make me an example of a method that needs to be overridden?

Now I've read all this page: http://docs.python.org/extending/newtypes.html
about how to define custom objects/types... I hope to be able to
understand better how the whole thing works.

If you tell me another method that need to be overridden (and why)
I'll try to override it, then I'll send you the code.

Thanks for your support, 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
More information about the maemo-developers mailing list