Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Fedora Build System (http://www.linux-archive.org/fedora-build-system/)
-   -   Question about koji hub opts and Java (http://www.linux-archive.org/fedora-build-system/561825-question-about-koji-hub-opts-java.html)

Kiu Leung 08-08-2011 07:28 PM

Question about koji hub opts and Java
 
Hi all,

This is Ken Leung, the Red Hat intern student has been trying to create a java client for koji hub. I ran a few koji debugs with koji web and
my java client and noticed that koji web has been generating web method calls with opts instead of parms for a listBuild
by task ID, as shown below:

2011-08-08 14:41:48,533 [DEBUG] m=listBuilds u=None koji.xmlrpc: Handling method listBuilds for session None (#None)
2011-08-08 14:41:48,533 [DEBUG] m=listBuilds u=None koji.xmlrpc: Params: ()
2011-08-08 14:41:48,533 [DEBUG] m=listBuilds u=None koji.xmlrpc: Opts: {'taskID': 4623}

If I use the apache xmlrpc library, I can only generate a call with the following:

2011-08-08 14:55:01,171 [DEBUG] m=getBuild u=testuser koji.xmlrpc: Handling method getBuild for session 14571 (#None)
2011-08-08 14:55:01,172 [DEBUG] m=getBuild u=testuser koji.xmlrpc: Params: ({'taskID': 4623},)
2011-08-08 14:55:01,173 [DEBUG] m=getBuild u=testuser koji.xmlrpc: Opts: {}

So I wonder if anybody knows how to generate the koji hub desired Opts with apache xmlrpc library? Or is Opts a python specific
feature which is not reproducable with Java and apache xmlrpc?

You kind advice is appreciated and thanks in advance!

Best regards,

Ken Leung
--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys


All times are GMT. The time now is 08:29 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.