Changeset d333eeb2b141f3fc3bff89f896f16c7b6e93d7cf for sx-actions
- Timestamp:
- 01/19/2009 04:13:49 PM (20 months ago)
- Children:
- e0dcbc4245921a5dc074ffdf2051052aa6f85a51
- Parents:
- 7e58fdb1405cc187750cdac4729d8ce492469f64
- git-committer:
- Friedrich Weber <fred@samurai-x.org> / 2009-01-19T16:13:49Z+0100
- Files:
-
- 1 modified
-
sx-actions/sxactions/__init__.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sx-actions/sxactions/__init__.py
r4e43a0 rd333ee 1 import logging 2 log = logging.getLogger(__name__) 3 1 4 import subprocess 2 5 … … 96 99 'spawn': self.action_spawn, 97 100 'quit': self.action_quit, 101 'log': self.action_log, 98 102 } # TODO: dotted names? 99 103 … … 114 118 """ 115 119 self.app.stop() 120 121 def action_log(self, info): 122 """ 123 print something to the log 124 125 Parameters: 126 `message`: str 127 (optional) 128 """ 129 log.debug(info.get('message', 'Debug message ...')) 116 130 117 131 def register(self, ident, action):
