changeset 932:92c6e4b6cabb

change base uri used on local subs Ignore-this: ee540cbdacffbe38c066c757cbb2c39f
author drewp@bigasterisk.com
date Wed, 12 Jun 2013 04:48:26 +0000
parents 3d8ad77176ec
children 8435e3ee1ec2
files bin/subcomposer
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/bin/subcomposer	Wed Jun 12 02:35:30 2013 +0000
+++ b/bin/subcomposer	Wed Jun 12 04:48:26 2013 +0000
@@ -79,7 +79,7 @@
 
         # this is a PersistentSubmaster (even for local)
         self.currentSub = Observable(Submaster.PersistentSubmaster(
-                    graph, self.makeLocal()))
+                    graph, self.switchToLocal()))
 
         def pc(val):
             log.info("change viewed sub to %s", val)
@@ -158,7 +158,7 @@
         def graphChanged():
             s = graph.value(self.session, L9['currentSub'])
             if s is None:
-                s = self.makeLocal()
+                s = self.switchToLocal()
             self.currentSub(Submaster.PersistentSubmaster(graph, s))
 
         @self.currentSub.subscribe
@@ -185,7 +185,7 @@
         @self._currentChoice.subscribe
         def choiceChanged(newChoice):
             if newChoice is Local:
-                newChoice = self.makeLocal()
+                newChoice = self.switchToLocal()
             if newChoice is not None:
                 self.currentSub(Submaster.PersistentSubmaster(
                     graph, newChoice))
@@ -194,14 +194,14 @@
         if sub == self.currentSub():
             self.sendupdate()
         
-    def makeLocal(self):
+    def switchToLocal(self):
         """
         change our display to a local submaster
         """
         # todo: where will these get stored, or are they local to this
         # subcomposer process and don't use PersistentSubmaster at all?
 
-        new = URIRef("http://local/%s" % time.time())
+        new = URIRef("http://light9.bigasterisk.com/sub/local/%s" % time.time())
         self.graph.patch(Patch(addQuads=[
             (new, RDF.type, L9['Submaster'], self.session),
             (new, RDF.type, L9['LocalSubmaster'], self.session),