diff bin/rdfdb @ 843:77b5dbcf688d

split syncedgraph into several layers Ignore-this: ed978c899898f5fca08d9a68bee27cfb
author drewp@bigasterisk.com
date Tue, 26 Mar 2013 07:48:07 +0000
parents bdfdfea84510
children 1bda494a8c3a
line wrap: on
line diff
--- a/bin/rdfdb	Tue Mar 26 07:08:44 2013 +0000
+++ b/bin/rdfdb	Tue Mar 26 07:48:07 2013 +0000
@@ -119,7 +119,9 @@
 from light9.rdfdb.graphfile import GraphFile
 from light9.rdfdb.patch import Patch, ALLSTMTS
 from light9.rdfdb.rdflibpatch import patchQuads
-from light9.rdfdb import syncedgraph
+
+from light9.rdfdb.patchsender import sendPatch
+from light9.rdfdb.patchreceiver import makePatchEndpointPutMethod
 
 from twisted.internet.inotify import INotify
 from run_local import log
@@ -155,7 +157,7 @@
             delQuads=[]))
 
     def sendPatch(self, p):
-        return syncedgraph.sendPatch(self.updateUri, p)
+        return sendPatch(self.updateUri, p)
 
 class WatchedFiles(object):
     """
@@ -340,7 +342,7 @@
 class Patches(PrettyErrorHandler, cyclone.web.RequestHandler):
     def __init__(self, *args, **kw):
         cyclone.web.RequestHandler.__init__(self, *args, **kw)
-        p = syncedgraph.makePatchEndpointPutMethod(self.settings.db.patch)
+        p = makePatchEndpointPutMethod(self.settings.db.patch)
         self.put = lambda: p(self)
 
     def get(self):