[pkg-fso-commits] [SCM] FSO frameworkd Debian packaging branch, master, updated. milestone4-368-g700ab82
Michael 'Mickey' Lauer
mickey at vanille-media.de
Mon Feb 2 18:52:05 UTC 2009
The following commit has been merged in the master branch:
commit fc11a940555dacb53aed868e63e9b03e6b59a447
Author: Michael 'Mickey' Lauer <mickey at vanille-media.de>
Date: Tue Jan 27 20:17:45 2009 +0100
opimd: do not mess with system bus registration, the controller is doing that for you
diff --git a/framework/subsystems/opimd/__init__.py b/framework/subsystems/opimd/__init__.py
index 8a0e5be..3e04aec 100755
--- a/framework/subsystems/opimd/__init__.py
+++ b/framework/subsystems/opimd/__init__.py
@@ -1,41 +1,13 @@
-#!/usr/bin/env python2.5
+#!/usr/bin/env python
+"""
+Open PIM Daemon
-#
-# Openmoko PIM Daemon
-# Main Program
-#
-# http://openmoko.org/
-# http://pyneo.org/
-#
-# Copyright (C) 2008 by Soeren Apel (abraxa at dar-clan.de)
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#
+(C) 2008 by Soeren Apel <abraxa at dar-clan.de>
+(C) 2008 Openmoko, Inc.
+GPLv2 or later
+"""
-"""PIM Daemon, main program"""
-
-import os
-import sys
-
-from dbus import SystemBus
-from dbus.mainloop.glib import DBusGMainLoop
-
-from gobject import MainLoop
-
-import logging
-logger = logging.getLogger('opimd')
+MODULE_NAME = "opimd"
from opimd import *
@@ -47,31 +19,38 @@ import pimb_sim_contacts_fso
import pimb_sim_messages_fso
import pimb_csv_contacts
+from gobject import MainLoop
+
+import os, sys
+
+import logging
+logger = logging.getLogger( MODULE_NAME )
+
+#----------------------------------------------------------------------------#
def factory(prefix, controller):
+#----------------------------------------------------------------------------#
"""This is the function that FSO's frameworkd will call to start this subsystem"""
- # Claim the bus name
# TODO Check for exceptions
- SystemBus().request_name(DBUS_BUS_NAME_FSO)
-
from domain_manager import DomainManager
DomainManager.init()
-
+
from backend_manager import BackendManager
backend_manager = BackendManager()
-
+
dbus_objects = []
-
+
# Create a list of all d-bus objects to make frameworkd happy
for dbus_obj in DomainManager.enumerate_dbus_objects():
dbus_objects.append(dbus_obj)
dbus_objects.append(backend_manager)
-
+
logger.info('opimd subsystem loaded')
-
- return dbus_objects
+ return dbus_objects
+#----------------------------------------------------------------------------#
if __name__ == '__main__':
+#----------------------------------------------------------------------------#
result = main_pyneo()
sys.exit(result)
--
FSO frameworkd Debian packaging
More information about the pkg-fso-commits
mailing list