def __init__(self, io_helper, recipient_helper, algorithm_helper, message_filename, for_your_eyes_only, throw_keys, escape_from_lines, set_filesize): MessageCommand.__init__(self, io_helper, message_filename, set_filesize, for_your_eyes_only) self.recipient_helper = recipient_helper self.algorithm_helper = algorithm_helper self.throw_keys = throw_keys
def __init__(self, io_helper, force_v3_sigs, force_v4_certs, signature_notations, certification_notations, notations, sig_policy_url, cert_policy_url, policy_url, preferred_keyserver, default_keyserver_url, message_filename, set_filesize, escape_from_lines, for_your_eyes_only): MessageCommand.__init__(self, io_helper, message_filename, set_filesize, escape_from_lines, for_your_eyes_only) self.force_v3_sigs = force_v3_sigs self.force_v4_certs = force_v4_certs self.signature_notations = signature_notations self.certification_notations = certification_notations self.notations = notations self.sig_policy_url = sig_policy_url self.cert_policy_url = cert_policy_url self.policy_url = policy_url self.preferred_keyserver = preferred_keyserver
def file_to_literal_message(self, filename, binary=True): msg = MessageCommand.file_to_literal_message( self, filename, binary=binary) msg = msg.compress(self.algorithm_helper.get_compression_algorithm(), self.algorithm_helper.get_compression_level()) return msg