Revision 2556424d lib/client/gnt_network.py
b/lib/client/gnt_network.py | ||
---|---|---|
1 | 1 |
# |
2 | 2 |
# |
3 | 3 |
|
4 |
# Copyright (C) 2011 Google Inc. |
|
4 |
# Copyright (C) 2011, 2012 Google Inc.
|
|
5 | 5 |
# |
6 | 6 |
# This program is free software; you can redistribute it and/or modify |
7 | 7 |
# it under the terms of the GNU General Public License as published by |
... | ... | |
90 | 90 |
mode = args[2] |
91 | 91 |
link = args[3] |
92 | 92 |
|
93 |
#TODO: allow comma separated group names |
|
94 |
if groups == 'all':
|
|
93 |
# TODO: allow comma separated group names
|
|
94 |
if groups == "all":
|
|
95 | 95 |
cl = GetClient() |
96 |
(groups, ) = cl.QueryGroups([], ['name'], False)
|
|
96 |
(groups, ) = cl.QueryGroups([], ["name"], False)
|
|
97 | 97 |
else: |
98 | 98 |
groups = [groups] |
99 | 99 |
|
... | ... | |
120 | 120 |
groups = args[1] |
121 | 121 |
|
122 | 122 |
#TODO: allow comma separated group names |
123 |
if groups == 'all':
|
|
123 |
if groups == "all":
|
|
124 | 124 |
cl = GetClient() |
125 |
(groups, ) = cl.QueryGroups([], ['name'], False)
|
|
125 |
(groups, ) = cl.QueryGroups([], ["name"], False)
|
|
126 | 126 |
else: |
127 | 127 |
groups = [groups] |
128 | 128 |
|
Also available in: Unified diff