Revision d9a7f0bb snf-astakos-app/astakos/im/management/commands/resource-modify.py
b/snf-astakos-app/astakos/im/management/commands/resource-modify.py | ||
---|---|---|
111 | 111 |
resource = self.get_resource(resource_name) |
112 | 112 |
resource.api_visible = allow |
113 | 113 |
if not allow and resource.ui_visible: |
114 |
self.stdout.write("Also resetting 'ui_visible' for consistency.\n")
|
|
114 |
self.stderr.write("Also resetting 'ui_visible' for consistency.\n")
|
|
115 | 115 |
resource.ui_visible = False |
116 | 116 |
resource.save() |
117 | 117 |
|
... | ... | |
127 | 127 |
|
128 | 128 |
resource.ui_visible = allow |
129 | 129 |
if allow and not resource.api_visible: |
130 |
self.stdout.write("Also setting 'api_visible' for consistency.\n")
|
|
130 |
self.stderr.write("Also setting 'api_visible' for consistency.\n")
|
|
131 | 131 |
resource.api_visible = True |
132 | 132 |
resource.save() |
133 | 133 |
|
... | ... | |
196 | 196 |
updates.append((resource, value)) |
197 | 197 |
break |
198 | 198 |
if updates: |
199 |
self.stdout.write("Updating...\n")
|
|
199 |
self.stderr.write("Updating...\n")
|
|
200 | 200 |
update_resources(updates) |
201 | 201 |
|
202 | 202 |
def parse_limit(self, limit): |
Also available in: Unified diff