
| Author | Changes | Lines of Code | Lines per Change |
|---|---|---|---|
| Totals | 22 (100.0%) | 698 (100.0%) | 31.7 |
| peterk | 13 (59.1%) | 663 (95.0%) | 51.0 |
| alfille | 4 (18.2%) | 19 (2.7%) | 4.7 |
| d1mag | 5 (22.7%) | 16 (2.3%) | 3.2 |
python patches
4 lines of code changed in 1 file:
Fixed owpython again. Screwed up the indenting.
3 lines of code changed in 1 file:
Fix of owpython infinite loop from Joshua J. Kugler
5 lines of code changed in 1 file:
corrected typo.
3 lines of code changed in 1 file:
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:
change path to bus.0/interface/settings/name
3 lines of code changed in 1 file:
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:
Avoid problem with python2.2
4 lines of code changed in 1 file:
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:
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:
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:
Add some missing .cvsignore-files.
2 lines of code changed in 1 file:
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:
New Makefile
6 lines of code changed in 1 file:
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:
Updated documentation. Removed exPath and exAttr since they're no longer being used.
34 lines of code changed in 1 file:
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:
Commented out the print in __setattr__.
3 lines of code changed in 1 file:
restructured how sensor attributes are found
18 lines of code changed in 1 file:
corrected the version number, copyright dates and added __author__ and __email__ to ow/__init__.py
5 lines of code changed in 1 file:
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: