master
Самоукин Алексей 14 years ago
parent e4734a1b54
commit 370a9c48e8

@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from cl_client import client, __app__, __version__
from cl_opt import opt, TitledHelpFormatter
from cl_opt import opt
import sys
from cl_share_cmd import share_cmd
@ -47,7 +47,7 @@ resource")},
'help':_("not synchronize the user preferences, is used \
in conjunction with the 'login' or 'logout'")}]
class sync(share_cmd):
class sync_cmd(share_cmd):
def __init__(self):
# Объект опций командной строки
self.optobj = opt(\
@ -58,7 +58,6 @@ class sync(share_cmd):
comment_examples=COMMENT_EXAMPLES,
description=DESCRIPTION,
option_list=CMD_OPTIONS + opt.variable_control+opt.color_control,
formatter=TitledHelpFormatter(),
check_values=self.checkOpts)
# Создаем объект логики
self.logicObj = client()

@ -21,7 +21,7 @@ sys.path.insert(0,os.path.abspath('/usr/lib/calculate-2.2/calculate-lib/pym'))
sys.path.insert(0,\
os.path.abspath('/usr/lib/calculate-2.2/calculate-client/pym'))
from cl_sync import sync
from cl_sync_cmd import sync_cmd
from cl_lang import lang
tr = lang()
@ -29,7 +29,7 @@ tr.setGlobalDomain('cl_desktop')
tr.setLanguage(sys.modules[__name__])
if __name__ == "__main__":
obj = sync()
obj = sync_cmd()
ret = obj.optobj.parse_args()
if ret is False:
sys.exit(1)

Loading…
Cancel
Save