Mercurial > code > home > repos > homeauto
comparison service/reasoning/reasoning.py @ 1266:ee5698ef64dd
add separate :matchPredicate support. some build and log edits.
Ignore-this: acdab8c2859e5f8622b491228d0c74dd
darcs-hash:564fab06788fee02dbb69e33c087085313fc24e1
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Sat, 20 Apr 2019 23:36:30 -0700 |
parents | d8acab2b01f5 |
children | 53a2664f450a |
comparison
equal
deleted
inserted
replaced
1265:1ddd1f057749 | 1266:ee5698ef64dd |
---|---|
22 sys.path.append('/opt') # docker is putting lib/ here | 22 sys.path.append('/opt') # docker is putting lib/ here |
23 | 23 |
24 from colorlog import ColoredFormatter | 24 from colorlog import ColoredFormatter |
25 from docopt import docopt | 25 from docopt import docopt |
26 from rdflib import Namespace, Literal, RDF, Graph | 26 from rdflib import Namespace, Literal, RDF, Graph |
27 from twisted.internet import reactor, task | 27 from twisted.internet import reactor, task, defer |
28 from twisted.internet.defer import inlineCallbacks | 28 from twisted.internet.defer import inlineCallbacks |
29 import cyclone.web, cyclone.websocket | 29 import cyclone.web, cyclone.websocket |
30 | 30 |
31 from greplin import scales | 31 from greplin import scales |
32 from greplin.scales.cyclonehandler import StatsHandler | 32 from greplin.scales.cyclonehandler import StatsHandler |
283 'CRITICAL': 'red,bg_white', | 283 'CRITICAL': 'red,bg_white', |
284 }, | 284 }, |
285 secondary_log_colors={}, | 285 secondary_log_colors={}, |
286 style='%' | 286 style='%' |
287 )) | 287 )) |
288 defer.setDebugging(True) | |
289 | |
288 | 290 |
289 if arg['-i']: | 291 if arg['-i']: |
290 import twisted.python.log | 292 import twisted.python.log |
291 twisted.python.log.startLogging(sys.stdout) | 293 twisted.python.log.startLogging(sys.stdout) |
292 | 294 |