landscape/ui/controller/tests/test_app.py:14: redefinition of unused 'SettingsApplicationController' from line 9
landscape/ui/controller/tests/test_configuration.py:6: 'ConfigControllerLockError' imported but unused
landscape/ui/controller/tests/test_configuration.py:12: redefinition of unused 'ConfigController' from line 6
landscape/ui/model/configuration/tests/test_state.py:12: redefinition of unused 'landscape' from line 6
landscape/ui/model/configuration/tests/test_state.py:13: redefinition of unused 'ConfigurationModel' from line 7
landscape/ui/model/configuration/tests/test_state.py:13: redefinition of unused 'StateError' from line 7
landscape/ui/model/configuration/tests/test_state.py:13: redefinition of unused 'VirginState' from line 7
landscape/ui/model/configuration/tests/test_state.py:13: redefinition of unused 'InitialisedState' from line 7
landscape/ui/model/configuration/tests/test_state.py:13: redefinition of unused 'ModifiedState' from line 7
landscape/ui/model/configuration/tests/test_state.py:13: redefinition of unused 'HOSTED' from line 7
landscape/ui/model/configuration/tests/test_state.py:13: redefinition of unused 'LOCAL' from line 7
landscape/ui/model/configuration/tests/test_state.py:13: redefinition of unused 'HOSTED_LANDSCAPE_HOST' from line 7
landscape/ui/model/configuration/tests/test_state.py:13: redefinition of unused 'LANDSCAPE_HOST' from line 7
landscape/ui/model/configuration/tests/test_state.py:13: redefinition of unused 'COMPUTER_TITLE' from line 7
[1] pyflakes
landscape/ ui/controller/ tests/test_ app.py: 14: redefinition of unused 'SettingsApplic ationController ' from line 9 ui/controller/ tests/test_ configuration. py:6: 'ConfigControll erLockError' imported but unused ui/controller/ tests/test_ configuration. py:12: redefinition of unused 'ConfigController' from line 6 ui/model/ configuration/ tests/test_ state.py: 12: redefinition of unused 'landscape' from line 6 ui/model/ configuration/ tests/test_ state.py: 13: redefinition of unused 'ConfigurationM odel' from line 7 ui/model/ configuration/ tests/test_ state.py: 13: redefinition of unused 'StateError' from line 7 ui/model/ configuration/ tests/test_ state.py: 13: redefinition of unused 'VirginState' from line 7 ui/model/ configuration/ tests/test_ state.py: 13: redefinition of unused 'InitialisedState' from line 7 ui/model/ configuration/ tests/test_ state.py: 13: redefinition of unused 'ModifiedState' from line 7 ui/model/ configuration/ tests/test_ state.py: 13: redefinition of unused 'HOSTED' from line 7 ui/model/ configuration/ tests/test_ state.py: 13: redefinition of unused 'LOCAL' from line 7 ui/model/ configuration/ tests/test_ state.py: 13: redefinition of unused 'HOSTED_ LANDSCAPE_ HOST' from line 7 ui/model/ configuration/ tests/test_ state.py: 13: redefinition of unused 'LANDSCAPE_HOST' from line 7 ui/model/ configuration/ tests/test_ state.py: 13: redefinition of unused 'COMPUTER_TITLE' from line 7
landscape/
landscape/
landscape/
landscape/
landscape/
landscape/
landscape/
landscape/
landscape/
landscape/
landscape/
landscape/
landscape/
[2] self._configura tion, name, value) tion.modify( ) __setattr_ _(self, name, value)
+ try:
+ setattr(
+ self._configura
+ except AttributeError:
+ return object.
I think the modify call should be in the else clause.
[3] Can you use triple quotes for docstring everywhere, in particular ConfigController?
[4] landscape- host": "", account- name": "", landscape- host": "", account- name": "",
+ self.default_data = {"management-type": "not",
+ "computer-title": "",
+ "hosted-
+ "hosted-
+ "hosted-password": "",
+ "local-
+ "local-
+ "local-password": ""
+ }
Nitpicking again, but the last "}" should be on the line before.
[5] ui.constants import (
+from landscape.
+ CANONICAL_MANAGED, NOT_MANAGED)
This can be on one line.
[6] It'd be nice to have some more docstrings on ClientSettingsD ialog.
Great work, +1!