]>
git.ipfire.org Git - ipfire.org.git/blob - www/webapp/datastore/news.py
5 from tornado
.database
import Row
8 def __init__(self
, application
, filename
=None):
9 self
.application
= application
15 def load(self
, filename
):
20 data
= data
.replace("\n", "").replace("\t", " ")
22 json
= simplejson
.loads(data
)
23 for key
in sorted(json
.keys()):
25 self
.items
.append(Row(json
[key
]))
27 def get(self
, limit
=None):