[Nepomuk] Sub-classes cache

Sebastian Trüg trueg at kde.org
Mon May 31 10:43:59 CEST 2010


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
> 
> 


More information about the Nepomuk mailing list