[yast-commit] r49516 - in /trunk/auditd/src: complex.ycp dialogs.ycp
Author: gs Date: Wed Jul 30 14:40:58 2008 New Revision: 49516 URL: http://svn.opensuse.org/viewcvs/yast?rev=49516&view=rev Log: init logfile settings dialog Modified: trunk/auditd/src/complex.ycp trunk/auditd/src/dialogs.ycp Modified: trunk/auditd/src/complex.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/auditd/src/complex.ycp?rev=49516&r1=49515&r2=49516&view=diff ============================================================================== --- trunk/auditd/src/complex.ycp (original) +++ trunk/auditd/src/complex.ycp Wed Jul 30 14:40:58 2008 @@ -81,12 +81,21 @@ void InitLogfileSettingsDialog (string id) { - UI::ChangeWidget( `id("log_file"), `Value, Auditd::GetAuditdOption("log_file") ) ; - - //foreach (string key, ["PrintMotd", "PermitRootLogin", - //"PasswordAuthentication", "RSAAuthentication", "PubkeyAuthentication"], { - //UI::ChangeWidget(`id(key), `Value, (Sshd::GetSSHDOption(key) == ["yes"])); - //}); + UI::ChangeWidget( `id("max_log_file"), `ValidChars, "0123456789" ); + + UI::ChangeWidget( `id("freq"), `Value, tointeger( Auditd::GetAuditdOption("freq")) ); + UI::ChangeWidget( `id("num_logs"), `Value, tointeger( Auditd::GetAuditdOption("num_logs")) ); + + foreach (string key, ["log_file", + "log_format", + "max_log_file", + "flush", + "max_log_file_action", + "name_format", + "name"], { + UI::ChangeWidget(`id(key), `Value, (Auditd::GetAuditdOption(key))); + }); + y2milestone( "Init logfile settings"); } Modified: trunk/auditd/src/dialogs.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/auditd/src/dialogs.ycp?rev=49516&r1=49515&r2=49516&view=diff ============================================================================== --- trunk/auditd/src/dialogs.ycp (original) +++ trunk/auditd/src/dialogs.ycp Wed Jul 30 14:40:58 2008 @@ -69,23 +69,23 @@ `VBox( `HBox(`HWeight( 1,`ComboBox(`id("log_format"), _("Format"), [ - `item(`id(`raw), "RAW", true ), - `item(`id(`nolog), "NOLOG" ) + `item(`id("RAW"), "RAW", true ), + `item(`id("NOLOG"), "NOLOG" ) ]) ), `HSpacing(2.0), - `HWeight( 1, `IntField(`id("num_logs"), _("Number of Logfiles"), 0, 99, 4) ) + `HWeight( 1, `IntField(`id("num_logs"), `opt(`hstretch), _("Number of Logfiles"), 0, 99, 4) ) ), `HBox( `HWeight( 1, `ComboBox(`id("flush"), _("Flush"), - [`item(`id("none"), "NONE" ), - `item(`id("incr"), "INCREMENTAL", true ), - `item(`id("data"), "DATA" ), - `item(`id("sync"), "SYNC" ) + [`item(`id("NONE"), "NONE" ), + `item(`id("INCREMENTAL"), "INCREMENTAL", true ), + `item(`id("DATA"), "DATA" ), + `item(`id("SYNC"), "SYNC" ) ]) ), `HSpacing(2.0), - `HWeight( 1, `IntField(`id("freq"), _("Frequence"), 0, 10000, 20 )) + `HWeight( 1, `IntField(`id("freq"), `opt(`hstretch), _("Frequence"), 0, 10000, 20 )) ) ) ) @@ -97,11 +97,11 @@ `HWeight( 1, `InputField(`id("max_log_file"), _("Ma&x File Size (MB)")) ), `HSpacing(2.0), `HWeight( 1, `ComboBox(`id("max_log_file_action"), _("Maximum File Size Action"), - [`item(`id("ignore"), "IGNORE" ), - `item(`id("syslog"), "SYSLOG", true ), - `item(`id("suspend"), "SUSPEND" ), - `item(`id("rotate"), "ROTATE" ), - `item(`id("keep"), "KEEP_LOGS" ) + [`item(`id("IGNORE"), "IGNORE" ), + `item(`id("SYSLOG"), "SYSLOG", true ), + `item(`id("SUSPEND"), "SUSPEND" ), + `item(`id("ROTATE"), "ROTATE" ), + `item(`id("KEEP_LOGS"), "KEEP_LOGS" ) ] ) ), `HSpacing(2.0), @@ -112,10 +112,10 @@ _("Computer Names"), `HBox( `HWeight( 1, `ComboBox(`id("name_format"), _("Computer Name Format"), - [`item(`id("none"), "NONE" ), - `item(`id("incr"), "HOSTNAME", true ), - `item(`id("data"), "FQD" ), - `item(`id("sync"), "USER" ) + [`item(`id("NONE"), "NONE" ), + `item(`id("HOSTNAME"), "HOSTNAME", true ), + `item(`id("FQD"), "FQD" ), + `item(`id("USER"), "USER" ) ]) ), `HSpacing(2.0), -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
gs@svn.opensuse.org