Author: jsrain
Date: Sat Feb 28 16:50:48 2009
New Revision: 55825
URL: http://svn.opensuse.org/viewcvs/yast?rev=55825&view=rev
Log:
Created tag branch-Code-11-2_17_76 for network
Added:
tags/branch-Code-11-2_17_76/network/
- copied from r55824, branches/SuSE-Code-11-Branch/network/
--
To unsubscribe, e-mail: yast-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: yast-commit+help(a)opensuse.org
Author: jsrain
Date: Sat Feb 28 16:50:45 2009
New Revision: 55824
URL: http://svn.opensuse.org/viewcvs/yast?rev=55824&view=rev
Log:
Created tag branch-Code-11-2_17_76
Added:
tags/branch-Code-11-2_17_76/
--
To unsubscribe, e-mail: yast-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: yast-commit+help(a)opensuse.org
Author: kmachalkova
Date: Fri Feb 27 16:00:07 2009
New Revision: 55822
URL: http://svn.opensuse.org/viewcvs/yast?rev=55822&view=rev
Log:
Created tag stable-2_18_1 for sudo
Added:
tags/stable-2_18_1/sudo/
- copied from r55821, trunk/sudo/
--
To unsubscribe, e-mail: yast-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: yast-commit+help(a)opensuse.org
Author: kmachalkova
Date: Fri Feb 27 16:00:00 2009
New Revision: 55821
URL: http://svn.opensuse.org/viewcvs/yast?rev=55821&view=rev
Log:
version++
Modified:
trunk/sudo/VERSION
trunk/sudo/package/yast2-sudo.changes
Modified: trunk/sudo/VERSION
URL: http://svn.opensuse.org/viewcvs/yast/trunk/sudo/VERSION?rev=55821&r1=55820&…
==============================================================================
--- trunk/sudo/VERSION (original)
+++ trunk/sudo/VERSION Fri Feb 27 16:00:00 2009
@@ -1 +1 @@
-2.18.0
+2.18.1
Modified: trunk/sudo/package/yast2-sudo.changes
URL: http://svn.opensuse.org/viewcvs/yast/trunk/sudo/package/yast2-sudo.changes?…
==============================================================================
--- trunk/sudo/package/yast2-sudo.changes (original)
+++ trunk/sudo/package/yast2-sudo.changes Fri Feb 27 16:00:00 2009
@@ -1,4 +1,13 @@
-------------------------------------------------------------------
+Fri Feb 27 15:03:57 CET 2009 - kmachalkova(a)suse.cz
+
+- Do not add extra space to command parameters (bnc#473683)
+- Move user selection into pop-up dialog in user/run-as alias config
+ (bnc#421053)
+- Some compatibility fixes (ButtonBoxes, InputFields usage)
+- 2.18.1
+
+-------------------------------------------------------------------
Wed Jan 14 16:35:37 CET 2009 - kmachalkova(a)suse.cz
- Show "Really abort?" message only if there is something to save
--
To unsubscribe, e-mail: yast-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: yast-commit+help(a)opensuse.org
Author: jsmeix
Date: Fri Feb 27 15:45:52 2009
New Revision: 55820
URL: http://svn.opensuse.org/viewcvs/yast?rev=55820&view=rev
Log:
Created tag stable-2_18_8 for printer
Added:
tags/stable-2_18_8/printer/
- copied from r55819, trunk/printer/
--
To unsubscribe, e-mail: yast-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: yast-commit+help(a)opensuse.org
Author: jsmeix
Date: Fri Feb 27 15:45:45 2009
New Revision: 55819
URL: http://svn.opensuse.org/viewcvs/yast?rev=55819&view=rev
Log:
- Added the functionality to basicadd.ycp and basicmodify.ycp to
set the default paper size directly when a driver is assigned
or when the currently used driver is replaced by another one.
- 2.18.8
Modified:
trunk/printer/VERSION
trunk/printer/package/yast2-printer.changes
trunk/printer/src/basicmodify.ycp
Modified: trunk/printer/VERSION
URL: http://svn.opensuse.org/viewcvs/yast/trunk/printer/VERSION?rev=55819&r1=558…
==============================================================================
--- trunk/printer/VERSION (original)
+++ trunk/printer/VERSION Fri Feb 27 15:45:45 2009
@@ -1 +1 @@
-2.18.7
+2.18.8
Modified: trunk/printer/package/yast2-printer.changes
URL: http://svn.opensuse.org/viewcvs/yast/trunk/printer/package/yast2-printer.ch…
==============================================================================
--- trunk/printer/package/yast2-printer.changes (original)
+++ trunk/printer/package/yast2-printer.changes Fri Feb 27 15:45:45 2009
@@ -1,4 +1,12 @@
-------------------------------------------------------------------
+Fri Feb 27 15:35:16 CET 2009 - jsmeix(a)suse.de
+
+- Added the functionality to basicadd.ycp and basicmodify.ycp to
+ set the default paper size directly when a driver is assigned
+ or when the currently used driver is replaced by another one.
+- 2.18.8
+
+-------------------------------------------------------------------
Thu Feb 26 14:49:04 CET 2009 - jsmeix(a)suse.de
- Fixed the "More Drivers" functionality in basicmodify.ycp
Modified: trunk/printer/src/basicmodify.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/printer/src/basicmodify.ycp?rev=…
==============================================================================
--- trunk/printer/src/basicmodify.ycp (original)
+++ trunk/printer/src/basicmodify.ycp Fri Feb 27 15:45:45 2009
@@ -218,6 +218,29 @@
}
}
}
+ // If the currently used driver is replaced by another driver,
+ // show the same content as in the BasicAddDialog to set the default paper size:
+ term new_driver_paper_choice_content = `RadioButtonGroup
+ ( `id(`paper_size_radio_buttons),
+ `HBox
+ ( `Label
+ ( // Label of a RadioButtonGroup to specify the default paper size:
+ _("Default paper size (if printer and driver supports it)")
+ ),
+ // Have none of the RadioButtons preselected which means that
+ // by default the CUPS default is used for the default paper size.
+ // For the CUPS 1.3 default see http://www.cups.org/str.php?L2846
+ // For CUPS 1.4 the default depends on the "DefaultPaperSize"
+ // setting in cupsd.conf
+ // see https://bugzilla.novell.com/show_bug.cgi?id=395760
+ // and http://www.cups.org/str.php?L2848
+ `HSpacing( 2 ),
+ `RadioButton( `id(`a4), "A&4" ),
+ `HSpacing( 1 ),
+ `RadioButton( `id(`letter), "Le&tter" ),
+ `HStretch()
+ )
+ );
// Usually the id in the connection items is the matching index number in the connections list.
// Here the id of the current connection is set to -1 because the uri of the current connection
// is derived from the queues list and this uri may be not present in the connections list
@@ -437,6 +460,7 @@
if( ret == `next )
{ commandline = "/usr/sbin/lpadmin -h localhost -p '" + name + "'";
boolean something_has_changed = false;
+ boolean set_paper_size_later = false;
integer selected_connection_index = (integer)UI::QueryWidget( `id(`connection_selection), `CurrentItem );
if( selected_connection_index >= 0 )
{ uri = Printer::connections[selected_connection_index,"uri"]:"";
@@ -451,10 +475,13 @@
if( "" != ppd )
{ commandline = commandline + " -m '" + ppd + "'";
something_has_changed = true;
+ // The paper size for a new driver will be only set
+ // after the new driver was actually successfully set:
+ set_paper_size_later = true;
}
}
- if( -1 == selected_ppd_index )
- { // The default paper size can be only set for the currently used driver.
+ else
+ { // The default paper size is only set in the same command for the currently used driver.
// Depending on the currently used driver no paper size selection might exists
// in particular not for a 'raw' queue or when a 'System V style interface script' is used:
if( UI::WidgetExists( `id(`paper_size_radio_buttons) ) )
@@ -540,6 +567,44 @@
Printerlib::result["stderr"]:""
);
}
+ else
+ { // Set the default paper size for a new driver only
+ // after a new driver was actually successfully set.
+ if( set_paper_size_later )
+ { // Depending on the previously used driver no paper size selection might exists
+ // in particular not for a 'raw' queue or when a 'System V style interface script' is used.
+ // When a driver is set for a 'raw' queue or for a queue with a 'System V style interface script',
+ // it is therefore not possible to set the default paper size for the new driver now
+ // so that the user would have to run the modify dialog again to do this.
+ if( UI::WidgetExists( `id(`paper_size_radio_buttons) ) )
+ { default_paper_size = "";
+ any paper_size = UI::QueryWidget( `id(`paper_size_radio_buttons), `CurrentButton );
+ if( `a4 == paper_size )
+ { default_paper_size = "A4";
+ }
+ if( `letter == paper_size )
+ { default_paper_size = "Letter";
+ }
+ // Try to set the requested default_paper_size if it is an available choice for this queue.
+ // If no default_paper_size is requested, the CUPS default is used.
+ // For the CUPS 1.3 default see http://www.cups.org/str.php?L2846
+ // For CUPS 1.4 the default depends on the "DefaultPaperSize" setting in cupsd.conf
+ // see https://bugzilla.novell.com/show_bug.cgi?id=395760
+ // and http://www.cups.org/str.php?L2848
+ if( "" != default_paper_size )
+ { // '\>' is used to find an available choice also when it is the last value on the line.
+ // Note the YCP quoting: \\< becomes \< and \\> becomes \> in the commandline.
+ commandline = "lpoptions -h localhost -p '" + name + "' -l | grep '^PageSize.*\\<" + default_paper_size + "\\>'";
+ if( Printerlib::ExecuteBashCommand( commandline ) )
+ { commandline = "/usr/sbin/lpadmin -h localhost -p '" + name + "' -o 'PageSize=" + default_paper_size + "'";
+ // Do not care if it fails to set the default_paper_size (i.e. show no error message to the user)
+ // because the default_paper_size setting is nice to have but not mandatoty for a working queue:
+ Printerlib::ExecuteBashCommand( commandline );
+ }
+ }
+ }
+ }
+ }
Wizard::EnableBackButton();
Wizard::EnableNextButton();
}
@@ -791,7 +856,10 @@
{ // When the currently used driver is to be exchanged,
// the widgets to change options for the currently used driver are removed and
// the description_input field is overwritten with the NickName of the new selected driver:
- UI::ReplaceWidget( `id(`paper_choice_and_driver_options_replace_point), `Empty() );
+ //UI::ReplaceWidget( `id(`paper_choice_and_driver_options_replace_point), `Empty() );
+ UI::ReplaceWidget( `id(`paper_choice_and_driver_options_replace_point),
+ `Left( new_driver_paper_choice_content )
+ );
string new_description = Printer::ppds[selected_ppd_index,"nickname"]:"";
if( "" != model
&& "unknown" != tolower( model )
@@ -851,23 +919,23 @@
{ driver_filter_string = "";
boolean valid_driver_found = false;
list driver_items = [];
- // Use the existing value of model because for each subsequent run of this more_drivers section
- // the existing value of model is shortened at the end (the last word is removed) to get
- // more and mor derivers for each subsequent run of this more_drivers section.
- y2milestone( "More drivers for '%1'", model );
- if( "" != model
- && "unknown" != tolower( model )
+ // Use the existing value of driver_filter_input_text
+ // which is usually set to nick_name and to model as fallback.
+ driver_filter_input_text = (string)UI::QueryWidget( `id(`driver_filter_input), `Value );
+ y2milestone( "More drivers for '%1'", driver_filter_input_text );
+ if( "" != driver_filter_input_text
+ && "unknown" != tolower( driver_filter_input_text )
)
- { // If the model string does not contain a space,
- // model_words is a singleton list which contains only model.
- list <string> model_words = splitstring( model, " " );
- if( size( model_words ) >= 2 )
+ { // If the driver_filter_input_text string does not contain a space,
+ // words is a singleton list which contains only one word.
+ list <string> words = splitstring( driver_filter_input_text, " " );
+ if( size( words ) >= 2 )
{ // If there are less than two words the following does not make sense.
// Try to find the word which contains a model number.
// This is usually the first word which contains a number.
string model_number_word = "";
foreach( string word,
- model_words,
+ words,
{ if( "" != filterchars( word, Printer::number_chars ) )
{ model_number_word = word;
break;
--
To unsubscribe, e-mail: yast-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: yast-commit+help(a)opensuse.org
Author: kmachalkova
Date: Fri Feb 27 15:37:19 2009
New Revision: 55818
URL: http://svn.opensuse.org/viewcvs/yast?rev=55818&view=rev
Log:
Created tag branch-Code-11-2_17_75 for network
Added:
tags/branch-Code-11-2_17_75/network/
- copied from r55817, branches/SuSE-Code-11-Branch/network/
--
To unsubscribe, e-mail: yast-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: yast-commit+help(a)opensuse.org
Author: kmachalkova
Date: Fri Feb 27 15:37:17 2009
New Revision: 55817
URL: http://svn.opensuse.org/viewcvs/yast?rev=55817&view=rev
Log:
Created tag branch-Code-11-2_17_75
Added:
tags/branch-Code-11-2_17_75/
--
To unsubscribe, e-mail: yast-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: yast-commit+help(a)opensuse.org