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

« back to all changes in this revision

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

  • Committer: mattgiuca
  • Date: 2008-01-23 05:48:04 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:272
consoleservice: Error if not POST.

Show diffs side-by-side

added added

removed removed

Lines of Context:
94
94
    # host, port: Host and port where the console server apparently lives
95
95
    # digest, text: Fields to pass along to the console server
96
96
    # It simply acts as a proxy to the console server
 
97
    if req.method != "POST":
 
98
        req.throw_error(req.HTTP_BAD_REQUEST)
97
99
    fields = req.get_fieldstorage()
98
100
    try:
99
101
        host = fields.getfirst("host").value