~dkuhlman/python-training-materials/Materials

« back to all changes in this revision

Viewing changes to Code_python/DocServer/Solutions/doc_cmd_client01.py

  • Committer: Dave Kuhlman
  • Date: 2015-10-09 19:50:18 UTC
  • mfrom: (35.1.6 Materials)
  • Revision ID: dkuhlman@davekuhlman.org-20151009195018-8rfrdur2zxdjn5ds
Merge after training at Cisco 10/05/2015

Show diffs side-by-side

added added

removed removed

Lines of Context:
99
99
        print 'reply: {}'.format(reply)
100
100
        return False
101
101
 
102
 
    def emptyline(self):
103
 
        pass
 
102
##     def emptyline(self):
 
103
##         pass
104
104
 
105
105
    def do_quit(self, args):
106
 
        """Say goodbye and quit.
 
106
        """Say goodbye, close the database, and quit.
107
107
        """
108
108
        print 'bye'
 
109
        self.database.close()
109
110
        # Return True in order to exit from the command loop.
110
111
        return True
111
112
    do_exit = do_quit