All pastes #559761 Raw Edit

nachox

public text v1 · immutable
·published 2007-06-11 21:50 UTC
rendered paste body
# Import the CGI module
import cgi

import xmlrpcclient

print "Content-Type: text/html\n\n"
print "<html><head>"
form = cgi.FieldStorage()
print form
p = xmlrpcclient.printer()
print "<FORM METHOD = post ACTION = \"main.py\">\n"
if(form.has_key("delete")):
  p.delFeed(form["delete"].value)
  print "deleted feed id:" + form["delete"].value
if(form.has_key("feedname")):
  print form["feedname"]
p.getFeeds()
print "add feed:"
print '<input type="text" name="feedname">'
print '<br>'
print "<INPUT TYPE = submit VALUE = \"add\">\n"
print "</body></html>"