diff options
author | Sebastien Estienne <sebastien.estienne@gmail.com> | 2007-09-22 14:50:25 +0000 |
---|---|---|
committer | Sebastien Estienne <sebastien.estienne@gmail.com> | 2007-09-22 14:50:25 +0000 |
commit | 86598900afd14e0cbbd2abcac02ae8c992a6277b (patch) | |
tree | 58ed909498c2ff7cec8857eae5c6d3c5ef83f0e2 /plugins/printer.py.in | |
parent | c65e644f69232f96d173335d90d1890428dc6e90 (diff) |
add basic support for printer thanx to Jason Whitlark
add support for different kind of message (error, warning, info)
fix emacs encoding settings
git-svn-id: file:///home/lennart/svn/public/service-discovery-applet/trunk@141 3be567f1-68ff-0310-b24a-ad7cc433fd2f
Diffstat (limited to 'plugins/printer.py.in')
-rw-r--r-- | plugins/printer.py.in | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/plugins/printer.py.in b/plugins/printer.py.in new file mode 100644 index 0000000..02fdffe --- /dev/null +++ b/plugins/printer.py.in @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +# -*- python -*- +# Copyright (C) 2007 by Jason Whitlark +# +# This file may be distributed and/or modified under the terms of +# the GNU General Public License version 2 as published by +# the Free Software Foundation. +# This file is distributed without any warranty; without even the implied +# warranty of merchantability or fitness for a particular purpose. +# See "COPYING" in the source distribution for more information. +# +# $Id$ +# + +from sdapplet.pluginutils import * + +class plugin_printer: + def __init__(self): + self.service_type = ["_ipp._tcp", "_pdl-datastream._tcp", "_printer._tcp"] + self.author = "Jason Whitlark" + self.description = "Direct user to printer configuration applet" + + def connect(self, use_host_names, name, stype, hostname, address, port, txts): + msg = """Detected printers can be configured via the System->Administration->Printing menu""" + message(msg) + +def load(): + return plugin_printer() |