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

Side by Side Diff: test/set-profile-property

Issue 6659006: flimflam: add support for multiple profiles (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/flimflam.git@master
Patch Set: more ers comments Created 9 years, 8 months 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 | Annotate | Revision Log
« no previous file with comments | « test/rm-profile ('k') | test/test-profile » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/usr/bin/python
2
3 import dbus, flimflam, string, sys
4
5 if (len(sys.argv) < 4):
6 print "Usage: %s <profile-name> <property> <value>" % (sys.argv[0])
7 sys.exit(1)
8
9 (_, name, property, value) = sys.argv
10
11 flim = flimflam.FlimFlam()
12 profile = flim.FindElementByNameSubstring('Profile', name)
13 profile.SetProperty(property, value)
OLDNEW
« no previous file with comments | « test/rm-profile ('k') | test/test-profile » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698