Forgot to add new file

This commit is contained in:
Marco Pesenti Gritti 2006-05-16 19:23:42 -04:00
parent 8a9d0b657c
commit 53ccec5267
2 changed files with 16 additions and 1 deletions

View File

@ -0,0 +1,14 @@
import dbus
class LogWriter:
def __init__(self, application):
self._application = application
bus = dbus.SessionBus()
proxy_obj = bus.get_object('com.redhat.Sugar.Logger', '/com/redhat/Sugar/Logger')
self._logger = dbus.Interface(proxy_obj, 'com.redhat.Sugar.Logger')
def write(self, s):
try:
self._logger.log(self._application, s)
except:
pass

View File

@ -1,4 +1,5 @@
sugardir = $(pythondir)/sugar/session sugardir = $(pythondir)/sugar/session
sugar_PYTHON = \ sugar_PYTHON = \
__init__.py \ __init__.py \
session.py session.py \
LogWriter.py