1. Eric Larson
  2. Dragoman

Commits

Comments (0)

Files changed (1)

File dragoman/control/main.py Modified

View file
  • Ignore whitespace
  • Hide word diff
 
 class Languages(APIHandler):
 
+    def GET(self):
+        langs = LanguageList()
+        return self.json(dict([(k, v) for k, v in langs.items()]))
+	
     def POST(self):
         langs = LanguageList()
         doc = simplejson.loads(cherrypy.request.body.read())