Package: python-imaging-sane
Version: 1.1.7-2
My scanner has an option named "scan". It is impossible to acquire value
of this option (using the public API) , because sane.SaneDev has a
method with the same name:
dev = sane.open('fujitsu:fi-6130dj:47352')
dev.scan
<bound method SaneDev.scan of <sane.SaneDev instance at 0xf5c8f5ac>>
dev['scan']
Name: scan
Cur value: <bound method SaneDev.scan of <sane.SaneDev instance at 0xf5c8f5ac>>
Index: 83
Title: Scan button
Desc: Scan button
Type: TYPE_BOOL
Unit: UNIT_NONE
Constr: None
active: yes
settable: no
Apparently the simplest way to access the value I wanted is to use
something like:
dev.__dict__['dev'].get_option(dev['scan'].index)
0
...but this is ugly and relies on implementation details of the module.
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (990, 'unstable'), (500, 'experimental')
Architecture: i386 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages python-imaging-sane depends on:
ii libc6 2.11.2-11 Embedded GNU C Library: Shared lib
ii libsane 1.0.22~git1.0.21-157-g126c70d-1 API library for scanners
ii python 2.6.6-10 interactive high-level object-orie
ii python-i 1.1.7-2 Python Imaging Library
ii python2. 2.5.5-11 An interactive high-level object-o
ii python2. 2.6.6-8+b1 An interactive high-level object-o
--
Jakub Wilk
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]