Any other thoughts on the above? Duplicating is a fairly basic/common operation, it would be good to include it on the Python extension Wiki pages (I wouldn't mind writing it up once I have it figured out).

Pieter


On Fri, 2 Nov 2018 at 14:52, <doctormo@...400...> wrote:
On Fri, 2018-11-02 at 11:04 +0100, Pieter Barendrecht wrote:
> Hi Martin,
>
> I'm using 0.92 at the moment. New extensions API, is there already
> some documentation about that? On one of the Inkscape forums I also
> read something about C++ extensions being supported in the (near)
> future?

We support C++ contrib features (I don't know why we call them
extensions, they have nothing to do with the extensions in python).

> Back to the question, I'm not sure why I'm getting that
> FutureWarning. I assumed that the last argument of
> inkex.etree.SubElement is a node (formatted as a dictionary), and
> that self.selected[self.options.ids[0]] gives me such an object.
> Apparently, one of these assumptions is not correct?

That would be an lxml question specifically. I haven't seen this
specific warning when rewriting the new API, but it could be related to
the version of lxml. I would like to incorporate the general feature of
cloning elements into the new API once you've worked out how to do it
without warnings.

Best Regards, Martin Owens