|
|
|
@ -120,10 +120,6 @@ class desktop_cmd(share_cmd):
|
|
|
|
|
errMsg = _("incorrect argument") + ":" + " %s" %" ".join(args)
|
|
|
|
|
self.optobj.error(errMsg)
|
|
|
|
|
return False
|
|
|
|
|
userName = args[0]
|
|
|
|
|
# Проверка на существование пользователя
|
|
|
|
|
if not self.logicObj.existsUser(userName):
|
|
|
|
|
return False
|
|
|
|
|
if not optObj.v:
|
|
|
|
|
if optObj.filter:
|
|
|
|
|
errMsg = _("incorrect option") + ":" + " %s" %"--filter" +\
|
|
|
|
@ -139,7 +135,11 @@ class desktop_cmd(share_cmd):
|
|
|
|
|
|
|
|
|
|
def setUserName(self, userName):
|
|
|
|
|
"""Установка имени пользователя"""
|
|
|
|
|
# Проверка на существование пользователя
|
|
|
|
|
if not self.logicObj.existsUser(userName):
|
|
|
|
|
return False
|
|
|
|
|
self.logicObj.clVars.Set("ur_login", userName, True)
|
|
|
|
|
return True
|
|
|
|
|
|
|
|
|
|
def createHome(self, optObj):
|
|
|
|
|
"""Создание домашней директории"""
|
|
|
|
|