897f5be
--- bodhi/tools/bodhi_client.py.orig	2008-08-01 14:10:19.000000000 -0400
897f5be
+++ bodhi/tools/bodhi_client.py	2008-08-01 14:10:03.000000000 -0400
897f5be
@@ -27,7 +27,7 @@
897f5be
 from optparse import OptionParser
897f5be
 from ConfigParser import ConfigParser
897f5be
 
897f5be
-from fedora.tg.client import BaseClient, AuthError, ServerError
897f5be
+from fedora.client import BaseClient, AuthError, ServerError
897f5be
 
897f5be
 __version__ = '$Revision: $'[11:-2]
897f5be
 __description__ = 'Command line tool for interacting with Bodhi'
897f5be
@@ -48,7 +48,7 @@
897f5be
         }
897f5be
         if hasattr(opts, 'request') and getattr(opts, 'request'):
897f5be
             params['request'] = opts.request
897f5be
-        data = self.send_request('save', auth=True, input=params)
897f5be
+        data = self.send_request('save', auth=True, req_params=params)
897f5be
         log.info(data['tg_flash'])
897f5be
         if data.has_key('update'):
897f5be
             log.info(data['update'])
897f5be
@@ -65,7 +65,7 @@
897f5be
         }
897f5be
         if hasattr(opts, 'request') and getattr(opts, 'request'):
897f5be
             params['request'] = opts.request
897f5be
-        data = self.send_request('save', auth=True, input=params)
897f5be
+        data = self.send_request('save', auth=True, req_params=params)
897f5be
         log.info(data['tg_flash'])
897f5be
         if data.has_key('update'):
897f5be
             log.info(data['update'])
897f5be
@@ -80,7 +80,7 @@
897f5be
             args['package'] = package[0]
897f5be
         if args.has_key('mine'):
897f5be
             auth = True
897f5be
-        data = self.send_request('list', input=args, auth=auth)
897f5be
+        data = self.send_request('list', req_params=args, auth=auth)
897f5be
         if data.has_key('tg_flash') and data['tg_flash']:
897f5be
             log.error(data['tg_flash'])
897f5be
             sys.exit(-1)
897f5be
@@ -92,7 +92,7 @@
897f5be
 
897f5be
     def delete(self, update):
897f5be
         params = { 'update' : update }
897f5be
-        data = self.send_request('delete', input=params, auth=True)
897f5be
+        data = self.send_request('delete', req_params=params, auth=True)
897f5be
         log.info(data['tg_flash'])
897f5be
 
897f5be
     def __koji_session(self):
897f5be
@@ -149,7 +149,7 @@
897f5be
                 'karma' : opts.karma,
897f5be
                 'title' : update
897f5be
         }
897f5be
-        data = self.send_request('comment', input=params, auth=True)
897f5be
+        data = self.send_request('comment', req_params=params, auth=True)
897f5be
         if data['tg_flash']:
897f5be
             log.info(data['tg_flash'])
897f5be
         if data.has_key('update'):
897f5be
@@ -157,7 +157,7 @@
897f5be
 
897f5be
     def request(self, opts, update):
897f5be
         params = { 'action' : opts.request, 'update' : update }
897f5be
-        data = self.send_request('request', input=params, auth=True)
897f5be
+        data = self.send_request('request', req_params=params, auth=True)
897f5be
         log.info(data['tg_flash'])
897f5be
         if data.has_key('update'):
897f5be
             log.info(data['update'])
897f5be
@@ -182,7 +182,7 @@
897f5be
         yes = sys.stdin.readline().strip()
897f5be
         if yes.lower() in ('y', 'yes'):
897f5be
             log.info("Pushing!")
897f5be
-            self.send_request('admin/push/mash', auth=True, input={
897f5be
+            self.send_request('admin/push/mash', auth=True, req_params={
897f5be
                     'updates' : [u['title'] for u in data['updates']] })
897f5be
 
897f5be
     def parse_file(self,opts):
897f5be
@@ -301,7 +301,7 @@
897f5be
     (opts, args) = parser.parse_args()
897f5be
     setup_logger()
897f5be
 
897f5be
-    bodhi = BodhiClient(BODHI_URL, opts.username, None, opts.verbose)
897f5be
+    bodhi = BodhiClient(BODHI_URL, username=opts.username, debug=opts.verbose)
897f5be
 
897f5be
     def verify_args(args):
897f5be
         if not args and len(args) != 1: