diff options
author | Ravikumar Veeramally <ravikumar.veeramally@linux.intel.com> | 2011-09-23 16:01:46 +0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2011-10-20 23:54:05 -0700 |
commit | 054895a41911c844731b8ff820611e530b9cbd69 (patch) | |
tree | c11bd2a9be40f66cc2c4c0bfe5e800f6eba32c3d /test | |
parent | d014314c404d301cac199e62cdd79172d2367b5d (diff) | |
download | neard-054895a41911c844731b8ff820611e530b9cbd69.tar.gz neard-054895a41911c844731b8ff820611e530b9cbd69.tar.bz2 neard-054895a41911c844731b8ff820611e530b9cbd69.zip |
ndef: Parsing and preparaton of caching ndef message for dbus replies
Couple of changes in ndef parsing and ndef data caching
for D-Bus replies. Caching ndef properties are efficient
and faster in retrieval for D-Bus replies.
Diffstat (limited to 'test')
-rwxr-xr-x | test/dump-record | 9 | ||||
-rwxr-xr-x | test/dump-target | 9 |
2 files changed, 2 insertions, 16 deletions
diff --git a/test/dump-record b/test/dump-record index 37d6573..c07659a 100755 --- a/test/dump-record +++ b/test/dump-record @@ -20,12 +20,5 @@ properties = record.GetProperties() print "[ %s ]" % (sys.argv[1]) for key in properties.keys(): - if key in ["SmartPoster", "HandOver"]: - if properties[key] == dbus.Boolean(1): - val = "true" - else: - val = "false" - else: - val = str(properties[key]) - + val = str(properties[key]) print " %s = %s" % (key, val)
\ No newline at end of file diff --git a/test/dump-target b/test/dump-target index 416e609..9e3c416 100755 --- a/test/dump-target +++ b/test/dump-target @@ -22,14 +22,7 @@ def extract_record(key, list): print " Record = [ %s ]" % (str(i)) for key in properties.keys(): - if key in ["SmartPoster", "HandOver"]: - if properties[key] == dbus.Boolean(1): - val = "true" - else: - val = "false" - else: - val = str(properties[key]) - + val = str(properties[key]) print " %s = %s" % (key, val) |