Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Release 1.3 with fixed call to python-bna for getting serial

  • Loading branch information...
commit 51ad76cec67076208f2effe198251f2926d1514d 1 parent cf3347e
@khertan authored
View
7 khtbma/__init__.py
@@ -27,7 +27,7 @@
__author__ = 'Benoit HERVIER (Khertan)'
__email__ = 'khertan@khertan.net'
-__version__ = '1.2.0'
+__version__ = '1.3.0'
class Authenticator(QObject):
@@ -64,13 +64,14 @@ def __init__(self, ):
def new_serial(self):
try:
authenticator = bna.requestNewSerial(self._region)
- self._secret = authenticator["secret"]
- self._set_serial(authenticator["serial"])
+ self._secret = authenticator[1]
+ self._set_serial(authenticator[0])
self._settings.setValue("SECRET", hexlify(self._secret).decode("ascii"))
self._settings.setValue("SERIAL", self._serial)
self.sync()
except Exception, e:
self.on_error.emit("Could not connect: %s" % (unicode(e)))
+ raise
@Slot()
def sync(self):
View
BIN  khtbma/qml/background_808.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
3  make.py
@@ -25,7 +25,8 @@
__mail__ = "khertan@khertan.net"
__upgrade__ = '''1.0: Initial Public Release
1.1: Better use of harmattan invoker
-1.2: Add restore serial capabilities'''
+1.2: Add restore serial capabilities
+1.3: Fix request new serial feature due to a change in bna api'''
if __name__ == "__main__":
try:
Please sign in to comment.
Something went wrong with that request. Please try again.