1
0
mirror of https://github.com/JoelBender/bacpypes synced 2025-09-28 22:15:23 +08:00
Commit Graph

98 Commits

Author SHA1 Message Date
Joel Bender
b5d2b56191 make the str() of a CharacterString more closely match an OctetString because the strValue is an octet string 2015-09-05 23:56:56 -04:00
Joel Bender
b468f724b8 manually merge in fixes already in stage 2015-09-05 23:24:33 -04:00
Joel Bender
f0919d27b7 wandering sys.stderr.write commented out 2015-09-05 22:50:21 -04:00
Joel Bender
5eb4f820be it seems like I ripped the bytearray stuff out of py25 once already 2015-09-05 22:27:41 -04:00
Joel Bender
d0249dd799 bring issue up-to-date with the stage 2015-09-05 18:07:01 -04:00
Joel Bender
af7e2e34a4 date class rolled in 2015-09-05 18:02:17 -04:00
Joel Bender
a4f07bac9b manually merge in Date class changes from #48 2015-09-01 11:18:05 -04:00
Joel Bender
1881dcfdbc merge issue-48 branch for discussion 2015-08-31 22:35:49 -04:00
Christian Tremblay, ing
4a2770c5d6 Tried to add a lot of flexibility to the Date object.
Regex now recognize a lot of different formats
Deal with errors when trying to find day of week
test_date.py covers a lot of different formats but can be improved.

Signed-off-by: Christian Tremblay, ing. <christian.tremblay@servisys.com>
2015-08-31 22:06:44 -04:00
Christian Tremblay, ing
736187580b Modifications to Date object to handle multiple string format
Signed-off-by: Christian Tremblay, ing. <christian.tremblay@servisys.com>
2015-08-29 21:29:18 -04:00
Joel Bender
350333fb89 whip through the __mro__ looking for enumerations, polish the __str__ 2015-08-25 10:32:26 -04:00
Joel Bender
0b6544f206 adjusted encoding, it relies on tagLVT being zero and tagData being b'' for opening and closing tags 2015-08-24 23:33:15 -04:00
Christian Tremblay, ing
852b1833dc Work started for date object parsing using regex
Signed-off-by: Christian Tremblay, ing. <christian.tremblay@servisys.com>
2015-08-24 23:14:25 -04:00
Joel Bender
d358a6246d moved the isinstance check 2015-08-24 22:54:50 -04:00
Joel Bender
5c51cf1bc3 fixed the bug, added wildcard patterns 2015-08-24 22:04:10 -04:00
Joel Bender
00a74fb8a2 make a clearer distinction between the value (str) and encoded value (bytes) (again?) 2015-08-24 14:03:42 -04:00
Joel Bender
c461566fb2 merging in issue-38, but I'm leaving the issue open until the rest of the datatypes are finished 2015-08-13 14:18:17 -04:00
Joel Bender
34ed6bd399 Python3 no longer uses __cmp__, incorrect initialization for octet strings 2015-08-12 09:07:11 -04:00
Joel Bender
11caa8a18a add __lt__ function to make tasks orderable (so heappush is happy in py34), update metaclass syntax in py34 singleton 2015-08-09 23:26:03 -04:00
Joel Bender
bbcf3c2bc0 synchronize task changes with other sources 2015-08-09 22:09:11 -04:00
Joel Bender
181e224ae0 a little better parameter type checking, a lot more tests 2015-08-03 14:29:58 -04:00
Joel Bender
7f80cc43d8 merge resolved 2015-08-03 00:52:23 -04:00
Joel Bender
9c8ec37938 change all the signed octet pack/unpack to unsigned 2015-08-02 23:12:58 -04:00
Joel Bender
85a8ce9558 fixes #10 2015-08-02 22:17:11 -04:00
Joel Bender
8d6508a853 turn the first byte into an int, then pass to str() 2015-07-31 23:23:44 -04:00
Joel Bender
8cba67d803 minor stylistic change 2015-07-31 21:56:25 -04:00
Joel Bender
2f6d7170c3 Merge branch 'issue-6' of https://github.com/ChristianTremblay/bacpypes into ChristianTremblay-issue-6 2015-07-31 21:51:29 -04:00
Joel Bender
263853760c backport changes to py25 and py27 2015-07-31 21:42:42 -04:00
Christian Tremblay
937da35780 No need to struct.unpack as pdu.pduData is already hex in that specific context
Signed-off-by: Christian Tremblay <christian.tremblay@servisys.com>
2015-07-31 19:58:25 -04:00
Christian Tremblay
cecb6770cd Forgotten xrange replaced by range
Signed-off-by: Christian Tremblay <christian.tremblay@servisys.com>
2015-07-31 19:22:56 -04:00
Christian Tremblay
f130a42ca9 Correct property named as in object.py line 342 is vendorIdentifier, not vendorId
Signed-off-by: Christian Tremblay <christian.tremblay@servisys.com>
2015-07-31 19:21:32 -04:00
Joel Bender
37ae6d00f6 working on issue 5 2015-07-30 23:16:55 -04:00
Joel Bender
fb192ea623 fixes #4 2015-07-23 13:44:19 -04:00
Joel Bender
f7da4242a9 Merge branch 'issue-3' 2015-07-23 02:51:19 -04:00
Joel Bender
0a7300f894 add debugging pieces to sync with py27 2015-07-23 02:46:45 -04:00
Joel Bender
e7d315ef8b in theory fixes #3 2015-07-23 02:42:17 -04:00
Joel Bender
699a7805d4 in theory fixes #2 2015-07-23 02:15:19 -04:00
Joel Bender
1305d12017 remove flakes 2015-07-17 09:45:39 -04:00
Joel Bender
f0af96c55b remove flakes 2015-07-17 09:24:05 -04:00
Joel Bender
4a7870ae12 removing flakes 2015-07-16 17:01:44 -04:00
Joel Bender
72ff10a79e removing flakes 2015-07-16 16:53:21 -04:00
Joel Bender
946ea12701 removing flakes 2015-07-16 16:40:47 -04:00
Joel Bender
4b2715d173 bring the object definitions up to date 2015-07-16 12:35:01 -04:00
Joel Bender
62ae0f8328 py3 no like trailing spaces 2015-07-16 11:47:12 -04:00
Joel Bender
adb085b4a9 missing tuple element selection after unpack 2015-07-16 10:33:35 -04:00
Joel Bender
b4594bfad2 silly spelling error 2015-07-16 08:18:06 -04:00
Joel Bender
ac064581f3 starting py25, syncing some py27 and py34 changes 2015-07-15 22:24:07 -04:00
Joel Bender
2a63f9a25d initial commit 2015-07-15 16:51:27 -04:00