[Nepomuk] Sub-classes cache

Stéphane Laurière slauriere at mandriva.com
Mon May 31 13:12:42 CEST 2010


Great, thanks Sebastian, I had overlooked that one. I'm running into an
issue though when resetting a class, see this bug I just opened:

https://bugs.kde.org/show_bug.cgi?id=240210

Cheers

Stéphane



> The Types classes do not update automatically for performance reasons
> and since types only rarely change. You can, however, use the
> Entity::reset method to reset a Class and forcing it to reload.
> This method was introduced for exactly your use-case.
>
> Cheers,
> Sebastian
>
> On 05/31/2010 10:21 AM, Stéphane Laurière wrote:
>> Hi all, Is there a way to tell a class to reload its hierarchy? I'm
>> actually trying to reproduce in Ginkgo the Nepomuk shell's class
>> creation feature by reusing the code of pimomodel.cpp [1], ported to
>> Python. I notice that when a class gets created, the subClass method of
>> its parent, if it was called previously, keeps returning the same
>> children until the program is restarted (entity.cpp loading its
>> hierarchy once and for all?).
>>
>> [1]
>> <http://lxr.kde.org/source/playground/base/nepomuk-kde/nepomukutils/pimomodel.cpp#167>
>>
>> Stéphane
>>
>>
> _______________________________________________
> Nepomuk mailing list
> Nepomuk at kde.org
> https://mail.kde.org/mailman/listinfo/nepomuk
>
>


-- 
Stéphane Laurière
Mandriva http://mandriva.com



More information about the Nepomuk mailing list