]>
git.ipfire.org Git - ipfire.org.git/blob - www/webapp/datastore/menu.py
5 from tornado
.database
import Row
8 def __init__(self
, application
, filename
=None):
9 self
.application
= application
15 def load(self
, filename
):
16 with
open(filename
) as f
:
17 for url
, items
in simplejson
.load(f
).items():
20 self
.items
[url
].append(Row(item
))
23 return self
.items
.get(url
, [])