Directory owfs/module/swig/python/ow/

Directory Created:
2005-01-19 13:06
Total Files:
3
Deleted Files:
0
Lines of Code:
569

Browse with ViewVC

[root]/owfs/module/swig/python/ow

Lines of Code

owfs/module/swig/python/ow/ Lines of Code

Developers

Author Changes Lines of Code Lines per Change
Totals 19 (100.0%) 686 (100.0%) 36.1
peterk 13 (68.4%) 663 (96.6%) 51.0
d1mag 5 (26.3%) 16 (2.3%) 3.2
alfille 1 (5.3%) 7 (1.0%) 7.0

Most Recent Commits

peterk 2008-05-19 21:25 Rev.: 1.15

corrected typo.

3 lines of code changed in 1 file:

peterk 2008-05-19 21:12 Rev.: 1.14

added the ability to call the owopt function from ow_opt.c from the swig languages. allows for the easy ability to change the temperature scale.

15 lines of code changed in 1 file:

d1mag 2007-12-18 09:17 Rev.: 1.13

change path to bus.0/interface/settings/name

3 lines of code changed in 1 file:

alfille 2007-05-22 13:32 Rev.: 1.12

Fix from Matthias Urlichs for python: 1. import fix 2. allow DS2409 AUX even if MAIN empty.

7 lines of code changed in 1 file:

d1mag 2006-12-29 09:03 Rev.: 1.11

Avoid problem with python2.2

4 lines of code changed in 1 file:

peterk 2006-12-06 23:25 Rev.: 1.10

Changed references to the old web site on sourceforge at http://owfs.sf.net to the new site at http://www.owfs.org.

3 lines of code changed in 1 file:

peterk 2006-11-30 19:07 Rev.: 1.9

The error_level and error_print globals were moved into the Global structure but the change wasn't reflected in the SWIG based interfaces. There are now four functions that provide access to the error_level and error_print variables - set_error_level, get_error_level, set_error_print and get_error_print.

6 lines of code changed in 1 file:

peterk 2006-11-30 18:41 Rev.: 1.8

Added __hash__ to return the hash of the sensor path. Allows for better support when Sensors are put into sets.Set. Added a new exception called exUnknownSensor that is raised whenever there's a problem reading from a Sensor. This should allow for a more robust python environment.

54 lines of code changed in 1 file:

d1mag 2006-10-30 11:42 Rev.: 1.2

Add some missing .cvsignore-files.

2 lines of code changed in 1 file:

d1mag 2006-05-17 09:15 Rev.: 1.2

Change @RM@ in makefiles.
Install two include files from now on... owfs_config.h and owcapi.h
src/include/config.h contain autogenerated configuration instead of owfs_config.h.
All *.h and *.c is updated to #include <config.h> which is normal behavior.

1 lines of code changed in 1 file:

d1mag 2005-10-12 23:26 Rev.: 1.1

New Makefile

6 lines of code changed in 1 file:

peterk 2005-08-02 21:15 Rev.: 1.7

added access to the error_level and error_print global variables. created ow.error_level and ow.error_print functions to provide access to them.

57 lines of code changed in 1 file:

peterk 2005-02-07 13:43 Rev.: 1.6

Updated documentation. Removed exPath and exAttr since they're no longer being used.

34 lines of code changed in 1 file:

peterk 2005-02-07 11:35 Rev.: 1.5

Lots of changes.


Makefile.am

- Removed the --root=$(DESTDIR) parameter. When DESTDIR is blank,
this causes Python's distutils to install the module under the
current directory, not the Python site-packages directory.


setup.py.in

- Added runtime_library_dirs = [ '@prefix@/lib' ] so that the owfs
shared library (libow.so) would have a better chance of being
found at runtime.


ow/__init__.py

- Added the ability to log the calls to _OW.get and _OW.put.

- The Sensor class now knows about cached (/) vs uncached
(/uncached) entries. Any Sensor can switch between them using the
useCache method.

- The string representation of a Sensor now indicates if the cached
or uncached paths are currently being used.

- __repr__ has been added to allow for easier determination of
Sensor id from commands like:

>>> print ow.Sensor( '/' ).sensorList( )
[Sensor("/10.B7B64D000800"), Sensor("/81.A44C23000000"),
Sensor("/1F.440701000000"), Sensor("/1F.5D0B01000000"),
Sensor("/1F.7F0901000000")]

- __eq__ has been added to allow for comparison of Sensor
instances. Two Sensors are considered equal if their _path
attributes are equal. This means that cached and uncached Sensor
instances are considered equal.

>>> ow.Sensor( '/' ) == ow.Sensor( '/uncached' )
True

- useCache method has been added to switch between cached and
uncached Sensor views.

- entryList method has been added to return a list of the Sensor's
entries.

- sensor method has been reworked to better handle root and
microlans. (Thanks to Wim Heirman for pointing out problems and
providing a solution.)

- sensorList methof has been added to return a list of the Sensor's
Sensors.


unittest/Readme.txt

- Added note as to the status of the unittests. Specifically that
two test are currently known to fail.


unittest/ds1420.py, unittest/ds2408.py, unittest/ds2409.py

- Added the ability to run a specific test by specifying it on the
command line.

- Example:

./ds2409.py DS2409.testAttributes


unittest/owload.py

- New unittest for basic reality check - can the ow module be
imported.


unittest/owsensors.py

- New tests - testCacheSwitch, testRootCache, testEntryList,
testSensorList, testEqual.


unittest/owtest_sample.ini, unittest/owtest_think.ini

- Added a type entry to the Root section.

162 lines of code changed in 1 file:

peterk 2005-01-29 15:50 Rev.: 1.4

Commented out the print in __setattr__.

3 lines of code changed in 1 file:

peterk 2005-01-29 15:42 Rev.: 1.3

restructured how sensor attributes are found

18 lines of code changed in 1 file:

peterk 2005-01-20 00:44 Rev.: 1.2

corrected the version number, copyright dates and added __author__ and __email__ to ow/__init__.py

5 lines of code changed in 1 file:

peterk 2005-01-19 13:06 Rev.: 1.1

Added latest code for the python bindings. This include the ow module, examples and unittests. Also added a version() function to ow.i to allow the various language bindings to easily determine the version of the OW libraries which are being used.

303 lines of code changed in 2 files:

Generated by StatCVS 0.6.0