Changeset - 7213af750481
[Not reviewed]
default
0 1 0
drewp@bigasterisk.com - 10 years ago 2015-06-14 03:31:45
drewp@bigasterisk.com
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
light9/Submaster.py
Show inline comments
 
@@ -191,13 +191,13 @@ class PersistentSubmaster(Submaster):
 
    def _saveContext(self):
 
        """the context in which we should save all the lightLevel triples for
 
        this sub"""
 
        typeStmt = (self.uri, RDF.type, L9['Submaster'])
 
        with self.graph.currentState(tripleFilter=typeStmt) as current:
 
            try:
 
                log.debug("submaster's type statement is in %r" %
 
                log.debug("submaster's type statement is in %r so we save there" %
 
                          list(current.contextsForStatement(typeStmt)))
 
                ctx = current.contextsForStatement(typeStmt)[0]
 
            except IndexError:
 
                log.info("declaring %s to be a submaster" % self.uri)
 
                ctx = self.uri
 
                self.graph.patch(Patch(addQuads=[
0 comments (0 inline, 0 general)