From eb0e87da0a66774fe76f0663ac06a29762e240a7 Mon Sep 17 00:00:00 2001 From: "Fanani M. Ihsan" Date: Mon, 30 May 2016 09:47:58 +0700 Subject: [PATCH] release app version 0.2 --- docs/conf.py | 4 ++-- setup.py | 2 +- zk/base.py | 12 ++++++++++++ 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 2cb41f2..59cc131 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -56,9 +56,9 @@ author = u'Fanani M. Ihsan' # built documents. # # The short X.Y version. -version = u'0.1' +version = u'0.2' # The full version, including alpha/beta/rc tags. -release = u'0.1' +release = u'0.2' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/setup.py b/setup.py index 00b5552..a6cd4d6 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup setup( name='pyzk', - version='0.1', + version='0.2', description='an unofficial library of zksoftware the fingerprint attendance machine.', url='https://github.com/fananimi/pyzk', author='Fanani M. Ihsan', diff --git a/zk/base.py b/zk/base.py index 9fa3105..b0e0e8d 100644 --- a/zk/base.py +++ b/zk/base.py @@ -131,6 +131,7 @@ class ZK(object): ''' disable (lock) connected device, make sure no activity when process run ''' + command = const.CMD_DISABLEDEVICE command_string = '' checksum = 0 @@ -148,6 +149,7 @@ class ZK(object): ''' re-enable connected device ''' + command = const.CMD_ENABLEDEVICE command_string = '' checksum = 0 @@ -165,6 +167,7 @@ class ZK(object): ''' get firmware version name ''' + command = const.CMD_GET_VERSION command_string = '' checksum = 0 @@ -219,6 +222,7 @@ class ZK(object): ''' play test voice ''' + command = const.CMD_TESTVOICE command_string = '' checksum = 0 @@ -236,6 +240,7 @@ class ZK(object): ''' create or update user by uid ''' + command = const.CMD_USER_WRQ uid = chr(uid % 256) + chr(uid >> 8) @@ -259,6 +264,7 @@ class ZK(object): ''' get all users ''' + command = const.CMD_USERTEMP_RRQ command_string = '' checksum = 0 @@ -313,6 +319,7 @@ class ZK(object): ''' cancel capturing finger ''' + command = const.CMD_CANCELCAPTURE cmd_response = self.__send_command(command=command) print cmd_response @@ -321,6 +328,7 @@ class ZK(object): ''' verify finger ''' + command = const.CMD_STARTVERIFY # uid = chr(uid % 256) + chr(uid >> 8) cmd_response = self.__send_command(command=command) @@ -330,6 +338,7 @@ class ZK(object): ''' start enroll user ''' + command = const.CMD_STARTENROLL uid = chr(uid % 256) + chr(uid >> 8) command_string = pack('2s', uid) @@ -340,16 +349,19 @@ class ZK(object): ''' Not implemented yet ''' + pass def get_attendance(self): ''' Not implemented yet ''' + pass def clear_attendance(self): ''' Not implemented yet ''' + pass