blob: 914985a51cebc74914b62646550dfa4ae402f90f [file] [log] [blame]
#!/usr/bin/env python
# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import dbus
import dbus.service
class Entity(dbus.service.Object):
def __init__(self, bus, name):
dbus.service.Object.__init__(self, bus, name)
self.bus = bus
def log(self, msg, *args):
print '%s %s: %s' % (self.__class__, self._object_path, (msg % args))
def path(self):
return dbus.ObjectPath(self._object_path)