[yast-commit] r46954 - /branches/tmp/aschnell/part-redesign/storage/src/include/ep-lvm-dialogs.ycp
Author: aschnell Date: Tue Apr 22 15:08:25 2008 New Revision: 46954 URL: http://svn.opensuse.org/viewcvs/yast?rev=46954&view=rev Log: - show path and id Modified: branches/tmp/aschnell/part-redesign/storage/src/include/ep-lvm-dialogs.ycp Modified: branches/tmp/aschnell/part-redesign/storage/src/include/ep-lvm-dialogs.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/aschnell/part-redesign/storage/src/include/ep-lvm-dialogs.ycp?rev=46954&r1=46953&r2=46954&view=diff ============================================================================== --- branches/tmp/aschnell/part-redesign/storage/src/include/ep-lvm-dialogs.ycp (original) +++ branches/tmp/aschnell/part-redesign/storage/src/include/ep-lvm-dialogs.ycp Tue Apr 22 15:08:25 2008 @@ -23,10 +23,17 @@ list<map> candidates = get_possible_pvs(tg); candidates = filter(map candidate, candidates, { return candidate["used_by"]:"" == ""; }); + // TODO: use StorageFields::XYZ as soon as we have appropriate widget list<term> candidates_list = maplist(map candidate, candidates, { string device = candidate["device"]:""; + string line = device; + if (preferred_displayname == `path) + line = line + " " + candidate["udev_path"]:""; + if (preferred_displayname == `id) + line = line + " " + candidate["udev_id", 0]:""; integer size_k = candidate["size_k"]:0; - return `item(`id(device), device + " " + ByteToHumanStringWithZero(size_k*1024)); + line = line + " " + ByteToHumanStringWithZero(size_k*1024); + return `item(`id(device), line); }); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
aschnell@svn.opensuse.org