Re: weblogsping

"Wari Wahab" <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <[email protected]>
<quote who="Francois Granger">
> It seem that I can't ping with weblogsping.py anymore. I checked the
> content of the "LATEST" file:

Please try it out by hand (Python interactive mode):
from xmlrpclib import Server
s = Server('http://rpc.weblogs.com/RPC2')
s.weblogUpdates.ping('Site Name', 'http://site.add.ress')
s = Server('http://rpc.weblogs.com/RPC2')
s.weblogUpdates.ping('Site Name', 'http://site.add.ress')

For the first one I got:
{'flerror': <Boolean False at 82254ac>,
 'message': 'Thanks for the ping. We checked and found that the
"RoughingIT" weblog has changed, so it will appear in <a
href="http://www.weblogs.com/changes.xml">changes.xml</a> next time it is
updated.'}

and the second one: Somehow it seems like a timeout, so I'm not sure why.
BTW, the above can really
{'message': "Weblog hasn't changed.", 'flerror': <Boolean True at 82253d4>}

What does your say?

Anyway, if you like to see immediate results, you can make the above
snippet into a script, and run it manually when there is errors in
pinging.. This is an external thing, not sure how to help you.




-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.