From ae7aeacc194656bd536718a33d99eae8258e3c37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A5=D0=B8=D1=80=D0=B5=D1=86=D0=BA=D0=B8=D0=B9=20=D0=9C?= =?UTF-8?q?=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= Date: Wed, 31 Aug 2016 17:05:05 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD?= =?UTF-8?q?=D0=B0=20=D0=B8=D0=BA=D0=BE=D0=BD=D0=BA=D0=B0=20=D0=B4=D0=BB?= =?UTF-8?q?=D1=8F=20mate,=20=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=20=D0=B2=D1=8B=D0=B2=D0=BE=D0=B4=20=D0=BF=D0=BE?= =?UTF-8?q?=D1=81=D0=BB=D0=B5=D0=B4=D0=BD=D0=B5=D0=B9=20=D0=B7=D0=B0=D0=BF?= =?UTF-8?q?=D0=B8=D1=81=D0=B8=20=D0=B2=20gui=20=D1=82=D0=B0=D0=B1=D0=BB?= =?UTF-8?q?=D0=B8=D1=86=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pym/unix/unix.py | 8 ++++---- pym/unix/wsdl_unix.py | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pym/unix/unix.py b/pym/unix/unix.py index afe63eb..98745cc 100644 --- a/pym/unix/unix.py +++ b/pym/unix/unix.py @@ -735,10 +735,10 @@ class Unix(Ldap): fields=table_fields, onClick='unix_groupmod' if any(table_fields) else None, addAction='unix_groupadd', - records=str(maxi)) + records=str(maxi+1)) if any(body): num_page, count_page = getPagesInterval( - count, offset, maxi) + count, offset, maxi+1) self.printSUCCESS(_('page %d from ') % num_page + str(count_page)) return True @@ -864,10 +864,10 @@ class Unix(Ldap): fields=table_fields, onClick='unix_usermod' if any(table_fields) else None, addAction='unix_useradd', - records=str(maxi)) + records=str(maxi+1)) if any(body): num_page, count_page = getPagesInterval( - count, offset, maxi) + count, offset, maxi+1) self.printSUCCESS(_('page %d from ') % num_page + str(count_page)) return True diff --git a/pym/unix/wsdl_unix.py b/pym/unix/wsdl_unix.py index ee1302b..59c62b5 100644 --- a/pym/unix/wsdl_unix.py +++ b/pym/unix/wsdl_unix.py @@ -82,7 +82,7 @@ class Wsdl(WsdlBase): # описание груп (список лямбда функций) 'groups': [ lambda group: group( - _("Unix server"), + _("Unix Server"), brief=( 'ldap.ld_base_dn', 'server.sr_ldap_set', @@ -593,7 +593,7 @@ class Wsdl(WsdlBase): # заголовок метода 'title': __("Unix Users"), # иконка для графической консоли - 'image': 'user,stock_person,avatar-default', + 'image': 'user,stock_person,system-users', # метод присутствует в графической консоли 'gui': lambda Get: Get('server.sr_unix_set') == 'on', # консольная команда