Logo Search packages:      
Sourcecode: panflute version File versions  Download package

def panflute::applet::prefs::Preferences::metadata_add_field_activate_cb (   self,
  item 
)

Insert the field specified in the menu item's name into the metadata
format buffer.

Definition at line 501 of file prefs.py.

00501                                                    :
        """
        Insert the field specified in the menu item's name into the metadata
        format buffer.
        """

        if item.props.name.startswith ("metadata_add_"):
            field = item.props.name.replace ("metadata_add_", "", 1)
            buffer = self.__builder.get_object ("metadata_buffer")
            buffer.insert_at_cursor ("{{{0}}}".format (field))
        else:
            self.log.warn ("Menu item {0} doesn't start with 'metadata_add_'".format (item.props.name))


    def metadata_default_clicked_cb (self, button):


Generated by  Doxygen 1.6.0   Back to index