Example #1
0
 def __str__(self):
     s = ""
     s += "Scanner time:         %s\n" % self.time
     s += "Scanner state:        %s\n" % self.state
     s += "Reasons:              %s\n" % ", ".join(self.reasons)
     s += "Active conditions:\n"
     for ac_id, ac in self.active_conditions.items():
         s += wsd_common.indent(str(ac))
     s += "Condition history:\n"
     for t, c in self.conditions_history.items():
         s += wsd_common.indent(str(c))
         s += wsd_common.indent("Clear time: %s\n" % t)
     return s
Example #2
0
 def __str__(self):
     s = ""
     s += str(self.settings)
     if self.platen is not None:
         s += "Platen settings:\n"
         s += wsd_common.indent(str(self.platen))
     if self.front_adf is not None:
         s += "ADF Duplex:           %r\n" % self.adf_duplex
         s += "ADF front settings:\n"
         s += wsd_common.indent(str(self.front_adf))
         if self.adf_duplex:
             s += "ADF back settings:\n"
             s += wsd_common.indent(str(self.back_adf))
     return s
Example #3
0
 def __str__(self):
     s = ""
     s += "Job name:             %s\n" % self.job_name
     s += "User name:            %s\n" % self.job_user_name
     s += "Job info:             %s\n" % self.job_info
     s += "Document parameters:\n"
     s += wsd_common.indent(str(self.doc_params))
     return s
Example #4
0
 def __str__(self):
     s = ""
     s += "Format:               %s\n" % self.format
     s += "Compression factor:   %s\n" % self.compression_factor
     s += "Images count:         %d\n" % self.images_num
     s += "Input source:         %s\n" % self.input_src
     s += "Content type:         %s\n" % self.content_type
     s += "Size autodetect:      %r\n" % self.size_autodetect
     s += "Input size:           (%d, %d)\n" % self.input_size
     s += "Auto exposure:        %r\n" % self.auto_exposure
     s += "Contrast:             %d\n" % self.contrast
     s += "Brightness:           %d\n" % self.brightness
     s += "Sharpness:            %d\n" % self.sharpness
     s += "Scaling:              (%d, %d)\n" % self.scaling
     s += "Rotation:             %d\n" % self.rotation
     if self.front is not None:
         s += "Front side:\n"
         s += wsd_common.indent(str(self.front))
     if self.back is not None:
         s += "Back side:\n"
         s += wsd_common.indent(str(self.back))
     return s
Example #5
0
 def __str__(self):
     s = ""
     s += "Job id:               %d\n" % self.id
     s += "Job token:            %s\n" % self.token
     s += "Front properties:\n"
     s += "\tPixels/line:          %s\n" % self.f_pixel_line
     s += "\tLines count:          %s\n" % self.f_num_lines
     s += "\tBytes/line:           %s\n" % self.f_byte_line
     if self.b_pixel_line is not None:
         s += "Back properties:\n"
         s += "\tPixels/line:          %s\n" % self.b_pixel_line
         s += "\tLines count:          %s\n" % self.b_num_lines
         s += "\tBytes/line:           %s\n" % self.b_byte_line
     s += "Document parameters:\n"
     s += wsd_common.indent(str(self.doc_params))
     return s