X-Git-Url: http://git.kaliko.me/?p=mpd-goodies.git;a=blobdiff_plain;f=src%2Flib%2Fgoodies.py;fp=src%2Flib%2Fgoodies.py;h=3cda56694fd1f1502d57758b1b7e5ef7226b7790;hp=0000000000000000000000000000000000000000;hb=cbf589ccbaa8a96f596f956cd103e754f0936e28;hpb=5894aae4c12d1583fd9ca3e0c486a83a147aca6b diff --git a/src/lib/goodies.py b/src/lib/goodies.py new file mode 100755 index 0000000..3cda566 --- /dev/null +++ b/src/lib/goodies.py @@ -0,0 +1,50 @@ +# -*- coding: utf-8 -*- + +# Copyright (c) 2012 Kaliko Jack +# +# 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 3 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, see . +# + +""" +DOC: + All goodies inherit from Goodie which in turn inherits from StartOpt and + MPDClass. + + StartOpt deals with command line argument and options, it will look for env. + var. $MPD_HOST and $MPD_PORT as well + + MPDClass is a plain MPD client +""" + +from lib.mpdclass import MPDClass +from lib.startop import StartOpt + + +class Goodie(StartOpt, MPDClass): + """""" + + def __init__(self, script_info, extra_options=[]): + """""" + StartOpt.__init__(self, script_info, extra_options) + self.con_id = dict({'host': self.cli_options.host, + 'port': self.cli_options.port}) + MPDClass.__init__(self) + + +# Script starts here +if __name__ == '__main__': + pass + +# VIM MODLINE +# vim: ai ts=4 sw=4 sts=4 expandtab