def export_keynotes(self, sender, args): kfile = forms.save_file('txt') if kfile: logger.debug('Exporting keynotes to: %s' % kfile) try: kdb.export_legacy_keynotes(self._conn, kfile) except System.TimeoutException as toutex: forms.alert(toutex.Message)
def export_visible_keynotes(self, sender, args): kfile = forms.save_file('txt') if kfile: logger.debug('Exporting visible keynotes to: %s' % kfile) include_list = set() for rkey in self.current_keynotes: include_list.update(rkey.collect_keys()) try: kdb.export_legacy_keynotes(self._conn, kfile, include_keys=include_list) except System.TimeoutException as toutex: forms.alert(toutex.Message)