Codebase list foomatic-db-engine / f43418f
Imported Upstream version 3.0.2-20050403 Didier Raboud 13 years ago
5 changed file(s) with 22 addition(s) and 16 deletion(s). Raw diff Collapse all Expand all
00 /COPYING/3.1/Tue Jan 28 23:01:10 2003//Tfoomatic-3_0-branch
1 /ChangeLog/3.99.2.23/Fri Jan 28 16:17:13 2005//Tfoomatic-3_0-branch
1 /ChangeLog/3.99.2.24/Thu Feb 24 00:17:50 2005//Tfoomatic-3_0-branch
22 /Foomatic-Devel-Ideas.txt/3.2/Tue Apr 22 23:19:52 2003//Tfoomatic-3_0-branch
33 /Makefile.in/3.16.2.3/Fri Jan 28 16:17:13 2005//Tfoomatic-3_0-branch
44 /README/3.26.2.5/Tue Sep 14 21:08:37 2004//Tfoomatic-3_0-branch
1616 /foomatic-compiledb.1.in/3.1/Thu Nov 28 02:42:26 2002//Tfoomatic-3_0-branch
1717 /foomatic-compiledb.in/3.6.2.1/Tue Nov 30 14:29:43 2004//Tfoomatic-3_0-branch
1818 /foomatic-configure.1.in/3.1/Thu Nov 28 02:42:26 2002//Tfoomatic-3_0-branch
19 /foomatic-configure.in/3.18.2.2/Tue Nov 30 14:29:43 2004//Tfoomatic-3_0-branch
19 /foomatic-configure.in/3.18.2.3/Thu Feb 24 00:17:50 2005//Tfoomatic-3_0-branch
2020 /foomatic-filters-ppds-README/3.1/Sun Feb 23 07:14:18 2003//Tfoomatic-3_0-branch
2121 /foomatic-filters-ppds-install/3.1/Sun Feb 23 07:14:18 2003//Tfoomatic-3_0-branch
2222 /foomatic-fix-xml.in/3.0/Fri Oct 11 01:16:34 2002//Tfoomatic-3_0-branch
0 2004-02-23 Till Kamppeter <till.kamppeter@gmx.net>
1
2 * foomatic-configure.in: Fixed bug of old non-Foomatic PPD not
3 overtaken when applying "foomatic-configure" to a queue without
4 specifying a PPD or a printer/driver pair.
5
6 * lib/Foomatic/DB.pm: When modifying PPD defaults for boolean
7 options "0" or "1" was written into the PPD file and not
8 "False" or "True".
9
010 2004-01-28 Till Kamppeter <till.kamppeter@gmx.net>
111
212 * makeDefaults.in, foomatic-cleanupdrivers.in: Allow use of an
254254 $config->{'driver'} = "raw";
255255 $config->{'printer'} = undef;
256256 }
257 if ($olddatablob->{'queuedata'}{'foomatic'}) {
258257 # We do not need the queue data block any more
259258 delete($olddatablob->{'queuedata'});
260259 } else {
262261 $olddatablob = undef;
263262 }
264263 } else {
265 # No Foomatic/PPD data
266 $olddatablob = undef;
267 }
268 } else {
269264 # Load the datablob of the former configuration
270265 if ($reconf) {
271 if (($olddatablob = load_datablob($config->{'spooler'},
272 $config->{'queue'})) &&
273 ($olddatablob->{'queuedata'}{'foomatic'})) {
274 # We do not need the queue data block here
275 delete($olddatablob->{'queuedata'});
266 if ($olddatablob = load_datablob($config->{'spooler'},
267 $config->{'queue'})) {
276268 # If the user has supplied only a printer or only a driver
277269 # fill in the second of the two fields in $config
278 if (!$config->{'ppdfile'}) {
270 if ((!$config->{'ppdfile'}) &&
271 ($olddatablob->{'queuedata'}{'foomatic'})) {
279272 if ((!$config->{'driver'}) && ($config->{'printer'})) {
280273 $config->{'driver'} = $olddatablob->{'driver'};
281274 }
283276 $config->{'printer'} = $olddatablob->{'id'};
284277 }
285278 }
279 # We do not need the queue data block here
280 delete($olddatablob->{'queuedata'});
286281 } else {
287282 $olddatablob = undef;
288283 }
0 /DB.pm/3.56.2.11/Sat Jan 22 23:20:58 2005//Tfoomatic-3_0-branch
0 /DB.pm/3.56.2.12/Thu Feb 24 00:17:50 2005//Tfoomatic-3_0-branch
11 /PPD.pm/3.0/Fri Oct 11 01:16:34 2002//Tfoomatic-3_0-branch
22 /UIElem.pm/3.0/Fri Oct 11 01:16:34 2002//Tfoomatic-3_0-branch
33 D
1414 use POSIX; # for rounding integers
1515 use strict;
1616
17 my $ver = '$Revision: 3.56.2.11 $ ';
17 my $ver = '$Revision: 3.56.2.12 $ ';
1818
1919 # constructor for Foomatic::DB
2020 sub new {
13571357 (lc($def) eq 'no') || (lc($def) eq 'false')) {
13581358 $def='False';
13591359 }
1360 $def = checkoptionvalue($this->{'dat'}, $name, $def, 1);
1360 $def = (checkoptionvalue($this->{'dat'}, $name, $def, 1) ?
1361 'True' : 'False');
13611362 } elsif ($arg->{'type'} =~ /^(int|float)$/) {
13621363 if (defined($arg->{'cdefault'})) {
13631364 $def = $arg->{'cdefault'};