[Kde-bindings] [PyKDE4] Bug in Nepomuk bindings
Olivier Duclos
oduclos at mandriva.com
Tue Oct 27 14:53:31 UTC 2009
Hi !
You were right. I forgot to instantiate a ResourceManager object. It was missing from the examples available on http://api.kde.org/4.3-api/kdelibs-apidocs/nepomuk/html/examples.html
Cya
Olivier
On Sat, 24 Oct 2009 19:24:47 +0200
Simon Edwards <simon at simonzone.com> wrote:
> Hello,
>
> Olivier Duclos wrote:
> > I'm writing a python scripts to test some Nepomuk features, but I'm stuck at tagging.
> > Here is my code :
> > res = nepomuk.Nepomuk.Resource("/some/file")
> > tag = nepomuk.Nepomuk.Tag("ninja")
> > res.addTag(tag)
> >
> > And here is the result :
> > ASSERT: "d->parent" in file /home/mandrake/rpm/BUILD/soprano-2.3.1/soprano/filtermodel.cpp, line 172
> > I looked at the binding source but could not find the cause of this.
>
> This doesn't look like a bindings problem. One of those object probably
> expects to have a parent object set during creation. (Are you basing
> this code on some C++ example somewhere?)
>
> cheers,
>
> --
> Simon Edwards | KDE-NL, Guidance tools, Guarddog Firewall
> simon at simonzone.com | http://www.simonzone.com/software/
> Nijmegen, The Netherlands | "ZooTV? You made the right choice."
>
More information about the Kde-bindings
mailing list