~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/webapp/console/service.py

  • Committer: William Grant
  • Date: 2009-05-05 02:57:53 UTC
  • Revision ID: grantw@unimelb.edu.au-20090505025753-a12zc1my6tjowies
Decode console input as UTF-8, until JSONRESTView does it for us.

Unicode input had regressed!

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
        working_dir = os.path.join("/home", req.user.login)   # Within jail
82
82
        uid = req.user.unixid
83
83
 
 
84
        # XXX: JSONRESTView should do this for us.
 
85
        text = text.decode('utf-8')
 
86
 
84
87
        msg = {'cmd':kind, 'text':text}
85
88
        try:
86
89
            json_response = ivle.chat.chat(host, port, msg, magic,decode=False)