Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > xmlrpclib with technorati

Reply
Thread Tools

xmlrpclib with technorati

 
 
Alan Little
Guest
Posts: n/a
 
      12-15-2004
I'm trying to write a generic weblog update notifier using xmlrpclib,
starting with technorati. What I want to do is something like this :

XML config file that would look like this:

<server url="http//whatever,technorati.org"
methodname="technoratiMethod">
<param sequence="1" source="myAttrib1" />
<param sequence="2" source="myAttrib2" />
</server>
<server .... another server

and code that would do this (pseudocode):

for serverconfig in xml.findall('server')
put params in sortedParamList
server=xmlrpclib.ServerProxy(serverconfig .attrib['url'])
server.methods[serverconfig
..attrib['methodName']](*sortedParamList)

However, technorati's xml-rpc server gives a permissions error when I
try to call MethodList(). I don't know whether or how I can call a
method on an xml-rpc server by binding the method name rather than
hard-coding it without having access to MethodList()

For bonus points: anybody know if it possible to get xmlrpclib to send
non-ascii parameter values (I know this would be a violation of the
utterly brain-dead xml-rpc spec)
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[ANN] Technorati-Ruby 0.1.0 Paul Duncan Ruby 2 09-29-2004 09:20 PM
mod_python with xmlrpclib Michael Python 0 02-26-2004 11:46 PM
RE: xmlrpclib Brian Quinlan Python 0 10-19-2003 02:23 AM
xmlrpclib sashan Python 0 10-19-2003 12:57 AM
xmlrpclib/timeoutsocket not happy together in 2.3 Larry Python 0 09-16-2003 07:30 PM



Advertisments