Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar-network-client
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@sugarlabs.org>2013-03-14 08:47:42 (GMT)
committer Aleksey Lim <alsroot@sugarlabs.org>2013-03-14 08:50:08 (GMT)
commit0c21665a3e60ece6b9b689f02e2efc8fa6bd04c7 (patch)
tree24ad6d50d9b42e3cab86580ec5d0170cff35ff76 /sugar-network-client
parentd68ed93efdc7773eb02633cb6a79f251acf96f30 (diff)
Broadcast proxy property changes in online mode
Diffstat (limited to 'sugar-network-client')
-rwxr-xr-xsugar-network-client12
1 files changed, 2 insertions, 10 deletions
diff --git a/sugar-network-client b/sugar-network-client
index fbb1244..8540ebd 100755
--- a/sugar-network-client
+++ b/sugar-network-client
@@ -75,8 +75,7 @@ class Application(application.Daemon):
volume = Volume(client.path('db'))
try:
- volume.populate()
- self._sync(volume)
+ ClientCommands(volume).populate()
clones.populate(volume['context'], client.activity_dirs.value)
finally:
volume.close()
@@ -122,7 +121,7 @@ class Application(application.Daemon):
self.accept()
def final_start():
- self._sync(volume)
+ commands.populate()
self.jobs.spawn(clones.monitor, volume['context'],
client.activity_dirs.value)
@@ -172,13 +171,6 @@ class Application(application.Daemon):
raise
break
- def _sync(self, volume):
- contexts = volume['context']
- docs, __ = contexts.find(limit=db.MAX_LIMIT, clone=[1, 2])
- for context in docs:
- if not clones.ensure_clones(context.guid):
- contexts.update(context.guid, clone=0)
-
def _read_environ(pid):
with file('/proc/%s/environ' % pid, 'rb') as f: