Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Side by Side Diff: appengine_apps/chromium_status/tools/set_status.py

Issue 778533003: Moved chromium_status to appengine/ (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 #!/usr/bin/env python
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 import sys
7 import urllib
8
9 from set_lkgr import get_pwd
10
11
12 def post(username, message, url='chromium-status.appspot.com'):
13 if not url.startswith('https://'):
14 url = 'https://' + url
15 data = {
16 'message': message,
17 'username': username,
18 'password': get_pwd(),
19 }
20 print url
21 out = urllib.urlopen(url + '/status', urllib.urlencode(data)).read()
22 print out
23 return 0
24
25
26 if __name__ == '__main__':
27 if not (3 <= len(sys.argv) <= 4):
28 print('Usage: set_status.py username message [url]')
29 sys.exit(1)
30
31 sys.exit(post(*sys.argv[1:]))
OLDNEW
« no previous file with comments | « appengine_apps/chromium_status/tools/set_lkgr.py ('k') | appengine_apps/chromium_status/tools/update.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698