Subversion Repositories navi

Compare Revisions

Ignore whitespace Rev 121 → Rev 126

/webapp/static/favicon.ico
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/webapp/static/favicon.ico
Property changes:
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Index: webapp/templates/index.html
===================================================================
--- webapp/templates/index.html (nonexistent)
+++ webapp/templates/index.html (revision 126)
@@ -0,0 +1,8 @@
+{% extends "base.html" %}
+
+{% block title %}Home{% end %}
+
+{% block body %}
+Number translator - this webapp allows you to translate written-out Na'vi numbers into decimal and octal.
+Parser - this webapp can parse Na'vi sentences into the base words, prefixes, infixes and suffixes. It does not currently translate the words, but that will come.
+{% end %}
Index: webapp/templates/number.html
===================================================================
--- webapp/templates/number.html (revision 121)
+++ webapp/templates/number.html (revision 126)
@@ -17,4 +17,4 @@
-{% end %}
+{% end %}
\ No newline at end of file
Index: webapp/main.py
===================================================================
--- webapp/main.py (revision 121)
+++ webapp/main.py (revision 126)
@@ -15,7 +15,7 @@
class Index(tornado.web.RequestHandler):
def get(self):
- self.redirect("/number")
+ self.render("templates/index.html")
class Number(tornado.web.RequestHandler):
def get(self):
@@ -69,4 +69,4 @@
http_server = tornado.httpserver.HTTPServer(application)
http_server.listen(1337)
#tornado.autoreload.start()
- tornado.ioloop.IOLoop.instance().start()
+ tornado.ioloop.IOLoop.instance().start()
\ No newline at end of file
/tsimapiak/parse.py
128,4 → 128,4
word = parseword(sent[-left:])
left -= len(word["word"]["navi"].split(" "))
ret.append(word)
return ret
return ret
/tsimapiak/dbconnector.py
32,18 → 32,4
else:
ret.append({"id": row["id"], "navi": row["navi"], "infix": row["navi"].lower(), "type": row["partOfSpeech"]})
db.close()
return ret
 
#def gettrans(id, cod):
#ret = []
#if cod not in (u"est",u"ptbr",u"de",u"eng",u"all"):
#return ret
#db = tornado.database.Connection("127.0.0.1", "navi", user="navi", password="navi")
#if cod == "all":
#for row in db.query("""
#SELECT *
#FROM `metaWords`
#WHERE id = ?""",idd):
#infix = makeinfix(row)
#ret.append([row["id"],row["navi"], infix, row["partOfSpeech"]])
#db.close()
return ret