Back to index

system-config-printer  1.3.9+20120706
Namespaces | Functions | Variables
cupshelpers Namespace Reference


namespace  cupshelpers
namespace  installdriver
namespace  openprinting
namespace  ppds
namespace  xmldriverprefs


def _no_debug
def _debugprint
def set_debugprint_fn


list __all__
 _debugprint_fn = _no_debug

Function Documentation

def cupshelpers._debugprint (   x) [private]

Definition at line 34 of file

00035 def _debugprint (x):
00036     _debugprint_fn (x)

def cupshelpers._no_debug (   x) [private]

Definition at line 30 of file

00031 def _no_debug (x):
00032     return

def cupshelpers.set_debugprint_fn (   debugprint)
Set debugging hook.

@param debugprint: function to print debug output
@type debugprint: fn (str) -> None

Definition at line 37 of file

00038 def set_debugprint_fn (debugprint):
00039     """
00040     Set debugging hook.
00042     @param debugprint: function to print debug output
00043     @type debugprint: fn (str) -> None
00044     """
00045     global _debugprint_fn
00046     _debugprint_fn = debugprint

Variable Documentation

Initial value:
00001 ['set_debugprint_fn',
00002             'Device', 'Printer', 'activateNewPrinter',
00003             'copyPPDOptions', 'getDevices', 'getPrinters',
00004             'missingPackagesAndExecutables', 'missingExecutables',
00005             'parseDeviceID',
00006             'setPPDPageSize',
00007             'ppds',
00008             'openprinting']


Copyright (C) 2008, 2011 Red Hat, Inc. Authors: Tim Waugh This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Definition at line 21 of file

Definition at line 33 of file