ConDict

Check-in [53a4d2e45c]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:default command = en-ru translate
Timelines: family | ancestors | descendants | both | testing
Files: files | file ages | folders
SHA1:53a4d2e45c5ec847eb6bdc2c7c3f8602bd230e80
User & Date: alzay 2012-10-12 12:21:37
Context
2012-10-16
19:10
done ticket #042743641b check-in: 69bd115d2a user: zorro tags: testing
2012-10-13
15:36
merge with testing check-in: ecc710b2d0 user: zorro tags: trunk
2012-10-12
12:21
default command = en-ru translate check-in: 53a4d2e45c user: alzay tags: testing
2012-10-05
09:08
optimize add-function check-in: f7cdee11f4 user: alzay tags: testing
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to condt.py.

190
191
192
193
194
195
196

197



198
199
200
201
202
203
204
205
                print('select an option...')
        return None

    def handling_command(self, command):
        """parser for user command"""
        command, arg = get_command(command)
        if command not in self.COMMANDS.keys():

            return None



        result = self.COMMANDS[command]['command'](arg)
        return result

    def command_help(self, arg=None):
        """callback for .help command"""
        if arg:
            s = '.' + arg
            result = self.COMMANDS.get(s)







>
|
>
>
>
|







190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
                print('select an option...')
        return None

    def handling_command(self, command):
        """parser for user command"""
        command, arg = get_command(command)
        if command not in self.COMMANDS.keys():
            # call en-ru translate
            if command == '' or command[0] == '.': return None
            arg = command + ' ' + arg if arg else command
            result = self.COMMANDS['.en']['command'](arg)
        else:
            result = self.COMMANDS[command]['command'](arg)
        return result

    def command_help(self, arg=None):
        """callback for .help command"""
        if arg:
            s = '.' + arg
            result = self.COMMANDS.get(s)