diff options
author | Aleksey Lim <alsroot@sugarlabs.org> | 2014-02-04 12:19:15 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@sugarlabs.org> | 2014-02-18 21:20:34 (GMT) |
commit | 6447b7951a66021f288f5b2b0c8cc301257d36ee (patch) | |
tree | 2c7d269a0dba29a6466996889a1c9980971a0e06 /sugar-network-client | |
parent | b68085299cee6e5488e8301042cde13d040494ca (diff) |
Polish design
The major points:
* minimize number of resource types
* use aggregated properties instead of resources
* separate blob storage from resources db
Diffstat (limited to 'sugar-network-client')
-rwxr-xr-x | sugar-network-client | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sugar-network-client b/sugar-network-client index 5147168..6e0d772 100755 --- a/sugar-network-client +++ b/sugar-network-client @@ -19,6 +19,7 @@ import os import errno import signal import locale +import gettext import logging from os.path import join, abspath, exists @@ -34,6 +35,9 @@ from sugar_network.toolkit import mountpoints, printf, application from sugar_network.toolkit import Option, coroutine +gettext.textdomain('sugar-network') + + class Application(application.Daemon): def __init__(self, **kwargs): @@ -96,7 +100,7 @@ class Application(application.Daemon): self.cmd_start() def run(self): - volume = db.Volume(client.path('db'), RESOURCES, lazy_open=True) + volume = db.Volume(client.path('db'), RESOURCES) routes = CachedClientRoutes(volume, client.api_url.value if not client.server_mode.value else None) router = Router(routes, allow_spawn=True) |