Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 617220 Details for
Bug 860406
python-imaging-sane fails to print some option values for a Canon LiDE 110 scanner
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Add a get_value method to the Option class
py_sane_get_value.diff (text/plain), 522 bytes, created by
Anders Blomdell
on 2012-09-25 19:04:50 UTC
(
hide
)
Description:
Add a get_value method to the Option class
Filename:
MIME Type:
Creator:
Anders Blomdell
Created:
2012-09-25 19:04:50 UTC
Size:
522 bytes
patch
obsolete
>--- sane.py.1 2012-09-25 20:49:55.574877629 +0200 >+++ sane.py 2012-09-25 20:50:04.798930824 +0200 >@@ -61,8 +61,16 @@ > > def is_active(self): > return _sane.OPTION_IS_ACTIVE(self.cap) >+ > def is_settable(self): > return _sane.OPTION_IS_SETTABLE(self.cap) >+ >+ def get_value(self): >+ try: >+ return self.scanDev.__getattr__(self.py_name) >+ except AttributeError: >+ return None >+ > def __repr__(self): > if self.is_settable(): > settable = 'yes'
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 860406
:
617192
|
617194
| 617220 |
617223