diff options
author | Andrew Dolgov <[email protected]> | 2006-05-17 07:07:30 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2006-05-17 07:07:30 +0100 |
commit | 1002e112a43223c5ab63db4c506601dac59d4c51 (patch) | |
tree | 542cfa200a52941c4c52ca733b66dfd96460676e /xmlrpc/extras/test.py | |
parent | 0309fb743f59bc67e302db86508515b1bd204865 (diff) |
unbundle xmlrpc library
Diffstat (limited to 'xmlrpc/extras/test.py')
-rw-r--r-- | xmlrpc/extras/test.py | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/xmlrpc/extras/test.py b/xmlrpc/extras/test.py deleted file mode 100644 index 2be085e2d..000000000 --- a/xmlrpc/extras/test.py +++ /dev/null @@ -1,61 +0,0 @@ -#!/usr/bin/python - -from xmlrpclib import * -import sys - -server = Server("http://madoka.spb.ru/~fox/testbox/tt-rss/xml-rpc.php") - -login = "fox" -password = "sotona" - -try: -# print server.rss.getAllFeeds("fox", "sotona"); - -# print server.rss.subscribeToFeed(login, password, -# "http://tt-rss.spb.ru/forum/rss.php") - -# print server.rss.getSubscribedFeeds(login, password) - -# print server.rss.getFeedHeadlines(login, password, 22, 30, 0) - - print server.rss.getArticle(login, password, 185429); - -# print server.rss.setArticleMarked(login, password, 185429, 2); - print server.rss.setArticleRead(login, password, 185429, 2); - -# print server.rss.setArticleMarked(login, password, 185429, 2); - - print server.rss.getArticle(login, password, 185429); - -# print server.rss.setArticleMarked(login, password, 185429, 2); - print server.rss.setArticleRead(login, password, 185429, 2); - -# print "Got '" + server.examples.getStateName(32) + "'" -# -# r = server.mail.send("edd", "Test", -# "Bonjour.", "freddy", "", "", -# 'text/plain; charset="iso-8859-1"') -# if r: -# print "Mail sent OK" -# else: -# print "Error sending mail" -# -# -# r = server.examples.echo('Three "blind" mice - ' + "See 'how' they run") -# print r -# -# # name/age example. this exercises structs and arrays -# -# a = [ {'name': 'Dave', 'age': 35}, {'name': 'Edd', 'age': 45 }, -# {'name': 'Fred', 'age': 23}, {'name': 'Barney', 'age': 36 }] -# r = server.examples.sortByAge(a) -# print r -# -# # test base 64 -# b = Binary("Mary had a little lamb She tied it to a pylon") -# b.encode(sys.stdout) -# r = server.examples.decode64(b) -# print r - -except Error, v: - print "XML-RPC Error:",v |