Mercurial > code > home > repos > light9
comparison bin/rdfdb @ 1282:2c0c3aec0d63
critical fix- put slash in the uri map prefix so it gets removed from uris, so filenames don't have // in them and fail to compare right to other versions
Ignore-this: 3098459d044bbd5ce92a0d5b7b428f27
author | drewp@bigasterisk.com |
---|---|
date | Sun, 14 Jun 2015 18:47:36 +0000 |
parents | 79c615718a2f |
children | d5c834766ce9 |
comparison
equal
deleted
inserted
replaced
1281:66cd0340bd32 | 1282:2c0c3aec0d63 |
---|---|
236 """ | 236 """ |
237 g = self.getSubgraph(ctx) | 237 g = self.getSubgraph(ctx) |
238 | 238 |
239 if ctx not in self.graphFiles: | 239 if ctx not in self.graphFiles: |
240 outFile = fileForUri(self.dirUriMap, ctx) | 240 outFile = fileForUri(self.dirUriMap, ctx) |
241 assert '//' not in outFile, (outFile, self.dirUriMap, ctx) | |
241 log.info("starting new file %r", outFile) | 242 log.info("starting new file %r", outFile) |
242 self.graphFiles[ctx] = GraphFile(self.notifier, outFile, ctx, | 243 self.graphFiles[ctx] = GraphFile(self.notifier, outFile, ctx, |
243 self.patch, self.getSubgraph) | 244 self.patch, self.getSubgraph) |
244 | 245 |
245 def dirtyFiles(self, ctxs): | 246 def dirtyFiles(self, ctxs): |
414 (options, args) = parser.parse_args() | 415 (options, args) = parser.parse_args() |
415 | 416 |
416 log.setLevel(logging.DEBUG if options.verbose else logging.INFO) | 417 log.setLevel(logging.DEBUG if options.verbose else logging.INFO) |
417 | 418 |
418 db = Db(dirUriMap={os.environ['LIGHT9_SHOW'].rstrip('/') + '/': | 419 db = Db(dirUriMap={os.environ['LIGHT9_SHOW'].rstrip('/') + '/': |
419 showconfig.showUri()}) | 420 showconfig.showUri() + '/'}) |
420 | 421 |
421 from twisted.python import log as twlog | 422 from twisted.python import log as twlog |
422 twlog.startLogging(sys.stdout) | 423 twlog.startLogging(sys.stdout) |
423 | 424 |
424 reactor.listenTCP(networking.rdfdb.port, cyclone.web.Application(handlers=[ | 425 reactor.listenTCP(networking.rdfdb.port, cyclone.web.Application(handlers=[ |