Mailinglist Archive: yast-commit (133 mails)
| < Previous | Next > |
[yast-commit] r62445 - /branches/SuSE-Code-11-SP1-Branch/autoinstallation/src/dialogs/ask.ycp
- From: ug@xxxxxxxxxxxxxxxxx
- Date: Mon, 30 Aug 2010 12:56:29 -0000
- Message-id: <20100830125630.06B4832372@xxxxxxxxxxxxxxxxx>
Author: ug
Date: Mon Aug 30 14:56:29 2010
New Revision: 62445
URL: http://svn.opensuse.org/viewcvs/yast?rev=62445&view=rev
Log:
boolean ask-dialog fixed
Modified:
branches/SuSE-Code-11-SP1-Branch/autoinstallation/src/dialogs/ask.ycp
Modified: branches/SuSE-Code-11-SP1-Branch/autoinstallation/src/dialogs/ask.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/autoinstallation/src/dialogs/ask.ycp?rev=62445&r1=62444&r2=62445&view=diff
==============================================================================
--- branches/SuSE-Code-11-SP1-Branch/autoinstallation/src/dialogs/ask.ycp
(original)
+++ branches/SuSE-Code-11-SP1-Branch/autoinstallation/src/dialogs/ask.ycp Mon
Aug 30 14:56:29 2010
@@ -185,8 +185,6 @@
any val = UI::QueryWidget(`id(entry_id), `Value);
if( ask["type"]:"string" == "integer" ) {
val = tointeger((string)val);
- } else if( ask["type"]:"string" == "boolean" ) {
- val = ( (boolean)val ? "true" : "false" );
}
if( ask["password"]:false == true ) {
string pass2 =
(string)UI::QueryWidget(`id(`pass2), `Value);
@@ -207,8 +205,13 @@
});
if( file != "" ) {
- if( ! SCR::Write (.target.string, file,
sformat("%1",val)) )
- y2milestone("writing answer to %1
failed",file);
+ if( ask["type"]:"string" == "boolean" ) {
+ if( ! SCR::Write (.target.string, file,
sformat("%1", ( (boolean)val ? "true" : "false" ))))
+ y2milestone("writing answer to %1
failed",file);
+ } else {
+ if( ! SCR::Write (.target.string, file,
sformat("%1",val)) )
+ y2milestone("writing answer to %1
failed",file);
+ }
}
if( script != $[] ) {
string scriptName =
script["filename"]:"ask_script.sh";
--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx
Date: Mon Aug 30 14:56:29 2010
New Revision: 62445
URL: http://svn.opensuse.org/viewcvs/yast?rev=62445&view=rev
Log:
boolean ask-dialog fixed
Modified:
branches/SuSE-Code-11-SP1-Branch/autoinstallation/src/dialogs/ask.ycp
Modified: branches/SuSE-Code-11-SP1-Branch/autoinstallation/src/dialogs/ask.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/autoinstallation/src/dialogs/ask.ycp?rev=62445&r1=62444&r2=62445&view=diff
==============================================================================
--- branches/SuSE-Code-11-SP1-Branch/autoinstallation/src/dialogs/ask.ycp
(original)
+++ branches/SuSE-Code-11-SP1-Branch/autoinstallation/src/dialogs/ask.ycp Mon
Aug 30 14:56:29 2010
@@ -185,8 +185,6 @@
any val = UI::QueryWidget(`id(entry_id), `Value);
if( ask["type"]:"string" == "integer" ) {
val = tointeger((string)val);
- } else if( ask["type"]:"string" == "boolean" ) {
- val = ( (boolean)val ? "true" : "false" );
}
if( ask["password"]:false == true ) {
string pass2 =
(string)UI::QueryWidget(`id(`pass2), `Value);
@@ -207,8 +205,13 @@
});
if( file != "" ) {
- if( ! SCR::Write (.target.string, file,
sformat("%1",val)) )
- y2milestone("writing answer to %1
failed",file);
+ if( ask["type"]:"string" == "boolean" ) {
+ if( ! SCR::Write (.target.string, file,
sformat("%1", ( (boolean)val ? "true" : "false" ))))
+ y2milestone("writing answer to %1
failed",file);
+ } else {
+ if( ! SCR::Write (.target.string, file,
sformat("%1",val)) )
+ y2milestone("writing answer to %1
failed",file);
+ }
}
if( script != $[] ) {
string scriptName =
script["filename"]:"ask_script.sh";
--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx
| < Previous | Next > |