~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-18 23:59:17 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:498
apps/userservice: Now writes to req.session to avoid having to log out.
www/media/common/tos.js: Refreshes the page after receiving an accept
response.
    (This doesn't seem to wait long enough; I still need to do a manual
    refresh to get in).

Show diffs side-by-side

added added

removed removed

Lines of Context:
171
171
        response = chat.chat(usrmgt_host, usrmgt_port, msg, usrmgt_magic,
172
172
            decode = False)
173
173
        # Write to the user's session to allow them to be activated
 
174
        session = req.get_session()
 
175
        session['state'] = "enabled"
 
176
        session.save()
174
177
        # Write the response
175
178
        req.content_type = "text/plain"
176
179
        req.write(response)