diff options
| author | Jerome Martin <jxm@risingtidesystems.com> | 2011-05-31 11:52:39 +0200 |
|---|---|---|
| committer | Jerome Martin <jxm@risingtidesystems.com> | 2011-05-31 17:58:56 +0200 |
| commit | c052aad6080666df216e087dda5397059b00b6ff (patch) | |
| tree | 0d061346964cd057734beafedcd7e4668f74c262 /rtsadmin/ui_root.py | |
| parent | a0f9dbae80fd231de263160df28b12b117592276 (diff) | |
| download | targetcli-c052aad6080666df216e087dda5397059b00b6ff.tar.gz | |
Switched to 1:1 hba:storage view.
* Added 'legacy_hba_view' global boolean to select legacy view if needed.
* Added root refresh when setting a global parameter.
* All backstore plugins now part of the backstores/ tree
* Only one storage object by backstore.
* We now hide indiviual backstores. As they are mapped 1:1 with
storage objects, both levels are collapsed.
Diffstat (limited to 'rtsadmin/ui_root.py')
| -rw-r--r-- | rtsadmin/ui_root.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/rtsadmin/ui_root.py b/rtsadmin/ui_root.py index 530c266..eab5435 100644 --- a/rtsadmin/ui_root.py +++ b/rtsadmin/ui_root.py @@ -20,6 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. from rtslib import RTSRoot from ui_node import UINode from ui_target import UIFabricModule +from ui_backstore_legacy import UIBackstoresLegacy from ui_backstore import UIBackstores class UIRoot(UINode): @@ -37,7 +38,10 @@ class UIRoot(UINode): Refreshes the tree of target fabric modules. ''' self._children = set([]) - self.add_child(UIBackstores()) + if self.prefs['legacy_hba_view']: + self.add_child(UIBackstoresLegacy()) + else: + self.add_child(UIBackstores()) if not self.loaded: self.log.debug("Refreshing in non-loaded mode.") for fabric_module in RTSRoot().fabric_modules: |
