View Single Post
Old 11-13-2023, 11:20 AM   #7
derrickoswald
Junior Member
derrickoswald began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Nov 2023
Device: Sigil
Quote:
Originally Posted by Doitsu View Post
You're mistaken, there's, of a course, a bk.setmetadataxml() method.
You might want to download the latest version of the Sigil Plugin Framework Guide.
Sorry, because of the comments in the post from 2016, I was looking at the output container documentation (line 135 of outputcontainer_py.html in Sigil_Plugin_Framework_rev14.epub):
Code:
# metadata get/set

    def getmetadataxml(self):
        # returns a utf-8 encoded metadata xml fragement
        return self._w.getmetadataxml()
which suggests there is no setmetadataxml() method.

Is it not true that an output type plugin is passed an outputcontainer object?
If the outputcontainer object does have a setmetadataxml() method, should the documentation be updated?
If it does not have a setmetadataxml() method, should it?
If not, would an edit type plugin's changes to delete the meta tag not be overridden by the save operation (in the case that environment SIGIL_DISABLE_VERSION_META didn't exist to do this)?
derrickoswald is offline   Reply With Quote