]> git.ipfire.org Git - ipfire.org.git/blobdiff - src/backend/base.py
location: Redesign index page
[ipfire.org.git] / src / backend / base.py
index bc8041af91c8ca095242523f4a273506418ee9d1..c1d4cbb174d4b64300f2eea45250eda81b4cb5bf 100644 (file)
@@ -2,6 +2,7 @@
 
 import configparser
 import io
+import location
 import ssl
 import tempfile
 import tornado.httpclient
@@ -172,6 +173,10 @@ class Backend(object):
        def messages(self):
                return messages.Messages(self)
 
+       @lazy_property
+       def location(self):
+               return location.Database("/var/lib/location/database.db")
+
        @lazy_property
        def ratelimiter(self):
                return ratelimit.RateLimiter(self)