#!/usr/bin/env python2.5
#
# This file is part of isearch-edit, a tool to create mis-files for 
# the maemo internet search applet
#
# (c) 2007 Thomas Schmidt <tschmidt@debian.org>
#
# This code 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 code 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 isearch-edit. If not, see <http://www.gnu.org/licenses/>.
#

import sys
from isearchedit import misparser

#mis = misparser.MisParser("/usr/share/mis/google-search.xml")
mis = misparser.MisParser(None)

#url = misurl.MisToUrl(misinput)
#mis = misurl.UrlToMis(url, misinput.get_name(), misinput.get_icon())

#mis.show_mis()
#mis.set_filename("test-search.xml")
#mis.write_mis()

#misoutput.set_name(misinput.get_name())
#misoutput.set_icon(misinput.get_icon())
#misoutput.set_action(misinput.get_action())
#misoutput.set_userinput(misinput.get_userinput())
#misoutput.set_inputs(misinput.get_inputs())

#mis.show_mis()

#mis.set_name("Test-Search")
#mis.show_mis()

#mis.set_icon("/usr/bin/woauchimmer.png")
#mis.show_mis()

#mis.set_userinput("q")
#mis.show_mis()

try:
  url = sys.argv[1]
except IndexError:
  url = ''

mis.UrlToMis(url, 'Test', '/dev/null')
mis.show_mis()

# vim modeline:
# vim: set expandtab tabstop=2 shiftwidth=2 autoindent smartindent foldmethod=indent:
