Exemplo n.º 1
0
    def __init__(self,
                 dev,
                 service,
                 phone_num_list,
                 fax_file_list,
                 cover_message='',
                 cover_re='',
                 cover_func=None,
                 preserve_formatting=False,
                 printer_name='',
                 update_queue=None,
                 event_queue=None):

        FaxSendThread.__init__(self, dev, service, phone_num_list,
                               fax_file_list, cover_message, cover_re,
                               cover_func, preserve_formatting, printer_name,
                               update_queue, event_queue)

        self.job_id = utils.gen_random_uuid()
        log.debug("JobId: %s" % self.job_id)

        if dev.bus == 'net':
            self.http_host = "%s:8295" % self.dev.host
        else:
            self.http_host = 'localhost:8295'
Exemplo n.º 2
0
    def __init__(self, dev, service, phone_num_list, fax_file_list,
                 cover_message='', cover_re='', cover_func=None, preserve_formatting=False,
                 printer_name='', update_queue=None, event_queue=None):

        FaxSendThread.__init__(self, dev, service, phone_num_list, fax_file_list,
             cover_message, cover_re, cover_func, preserve_formatting,
             printer_name, update_queue, event_queue)

        self.job_id = utils.gen_random_uuid()
        log.debug("JobId: %s" % self.job_id)

        if dev.bus == 'net':
            self.http_host = "%s:8295" % self.dev.host
        else:
            self.http_host = 'localhost:8295'