Exemple #1
0
 def POST(self, sub, field, value):
   getSubscriptionManager().set_series_detail(sub, field, urllib.unquote(value))
   return json.dumps(None)
Exemple #2
0
 def GET(self):
     return json.dumps(
         {"subscriptions": getSubscriptionManager().get_series()})
Exemple #3
0
 def GET(self, sub, field, value):
   return json.dumps(getSubscriptionManager().get_series_details(sub)[field])
Exemple #4
0
 def PUT(self, sub):
   return json.dumps(getSubscriptionManager().add_series(sub))
Exemple #5
0
 def GET(self, sub):
   return json.dumps(getSubscriptionManager().get_episodes(sub))
Exemple #6
0
 def DELETE(self, sub):
   getSubscriptionManager().remove_series(sub)
   return json.dumps(None)
Exemple #7
0
 def GET(self):
   return json.dumps({"subscriptions": getSubscriptionManager().get_series()})