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

« back to all changes in this revision

Viewing changes to www/apps/userservice/__init__.py

  • Committer: mattgiuca
  • Date: 2008-02-22 06:40:38 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:551
userservice/usrmgt-server: Added update_user action to both.

Show diffs side-by-side

added added

removed removed

Lines of Context:
272
272
            update[f] = val
273
273
        else:
274
274
            pass
 
275
    if 'login' not in update:
 
276
        req.throw_error(req.HTTP_BAD_REQUEST,
 
277
        "Required field 'login' missing.")
275
278
 
276
279
    # Get the arguments for usermgt.create_user from the session
277
280
    # (The user must have already logged in to use this app)
280
283
        "update": update,
281
284
    }
282
285
    msg = {'update_user': args}
283
 
    # TEMP
284
 
    req.write(repr(msg))
285
 
    return
286
 
    # END TEMP
287
286
 
288
287
    response = chat.chat(usrmgt_host, usrmgt_port, msg, usrmgt_magic,
289
288
        decode = False)