Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar-network
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@sugarlabs.org>2014-02-04 12:19:15 (GMT)
committer Aleksey Lim <alsroot@sugarlabs.org>2014-02-18 21:20:34 (GMT)
commit6447b7951a66021f288f5b2b0c8cc301257d36ee (patch)
tree2c7d269a0dba29a6466996889a1c9980971a0e06 /sugar-network
parentb68085299cee6e5488e8301042cde13d040494ca (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')
-rwxr-xr-xsugar-network6
1 files changed, 5 insertions, 1 deletions
diff --git a/sugar-network b/sugar-network
index cb81d79..818721e 100755
--- a/sugar-network
+++ b/sugar-network
@@ -21,6 +21,7 @@ import sys
import shlex
import types
import locale
+import gettext
from json import dumps, loads
from os.path import join, exists, isfile
@@ -35,6 +36,9 @@ from sugar_network.toolkit import application, coroutine
from sugar_network.toolkit import Option, BUFFER_SIZE, enforce
+gettext.textdomain('sugar-network')
+
+
quiet = Option(
'turn off any output',
default=False, type_cast=Option.bool_cast, action='store_true',
@@ -71,7 +75,7 @@ _LIST_RE = re.compile(r'\s*[;,:]+\s*')
class ClientRouter(Router, ClientRoutes):
def __init__(self):
- home = db.Volume(client.path('db'), RESOURCES, lazy_open=True)
+ home = db.Volume(client.path('db'), RESOURCES)
Router.__init__(self, self)
ClientRoutes.__init__(self, home,
client.api_url.value if not offline.value else None,