Commit 9c4be0fb authored by Pavel Vainerman's avatar Pavel Vainerman

(python): исправил ошибку в интерфейсе (доступ к несуществующей функции)

parent a3ba58f8
......@@ -7,7 +7,7 @@
Name: libuniset
Version: 1.6
Release: alt13
Release: alt15
Summary: UniSet - library for building distributed industrial control systems
......@@ -319,6 +319,12 @@ mv -f %buildroot%python_sitelibdir_noarch/* %buildroot%python_sitelibdir/%oname
%exclude %_pkgconfigdir/libUniSet.pc
%changelog
* Mon Oct 28 2013 Pavel Vainerman <pv@altlinux.ru> 1.6-alt15
- (python): fixed bug in UInterface
* Sat Oct 26 2013 Pavel Vainerman <pv@altlinux.ru> 1.6-alt14
- (python): fixed bug in UInterface
* Thu Oct 24 2013 Pavel Vainerman <pv@altlinux.ru> 1.6-alt13
- (python): add getArgParam, getArgInt and checkArg functions for UGlobal.py
......
......@@ -6,7 +6,7 @@ import time
import sys
def is_id( str_id ):
if str_id.__class__.__name__ == "int":
if str_id.__class__.__name__ == "int" or str_id.__class__.__name__ == "long":
return True
if str_id.strip().isdigit():
......@@ -19,7 +19,7 @@ def to_int(s):
if s == None or s == "":
return 0
if s.__class__.__name__ == "int":
if s.__class__.__name__ == "int" or s.__class__.__name__ == "long":
return s
if len(s)>2 and s[0] == '0' and s[1] == 'x':
......@@ -235,7 +235,7 @@ def getArgInt(param,defval=0):
for i in range(0, len(sys.argv)):
if sys.argv[i] == param:
if i+1 < len(sys.argv):
return to_int(strsys.argv[i+1])
return to_int(sys.argv[i+1])
else:
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment