__pretty_app_name__ = "DialCentral"
__app_name__ = "dialcentral"
__version__ = "1.0.6"
-__build__ = 1
+__build__ = 4
__app_magic__ = 0xdeadbeef
_data_path_ = os.path.join(os.path.expanduser("~"), ".dialcentral")
_user_settings_ = "%s/settings.ini" % _data_path_
"""
If something can be done after the UI loads, push it here so it's not blocking the UI
"""
+ # Barebones UI handlers
try:
- # Barebones UI handlers
import null_backend
import null_views
self._recentViews[self._selectedBackendId].enable()
self._messagesViews[self._selectedBackendId].enable()
self._contactsViews[self._selectedBackendId].enable()
+ except Exception, e:
+ with gtk_toolbox.gtk_lock():
+ self._errorDisplay.push_exception()
- # Setup maemo specifics
+ # Setup maemo specifics
+ try:
try:
import osso
except (ImportError, OSError):
import led_handler
self._ledHandler = led_handler.LedHandler()
- # Setup maemo specifics
try:
import conic
except (ImportError, OSError):
self._connection.request_connection(conic.CONNECT_FLAG_NONE)
else:
logging.warning("No connection support")
+ except Exception, e:
+ with gtk_toolbox.gtk_lock():
+ self._errorDisplay.push_exception()
- # Setup costly backends
+ # Setup costly backends
+ try:
import gv_backend
import file_backend
import gv_views
config.read(constants._user_settings_)
with gtk_toolbox.gtk_lock():
self.load_settings(config)
-
- self._spawn_attempt_login(2)
except Exception, e:
with gtk_toolbox.gtk_lock():
self._errorDisplay.push_exception()
+ finally:
+ self._spawn_attempt_login(2)
def attempt_login(self, numOfAttempts = 10, force = False):
"""
* Including a vastly improved py2deb
* Tweaked sizes of stuff on recent tab
* Starting some work on rotation support for fremantle
+* Made startup more error resistant
1.0.5
* Contacts Tab remembers the last address book viewed on restart
__preremove__ = """#!/bin/sh -e
-/usr/lib/dialcentral/alarm_handler.py -d
+python /usr/lib/dialcentral/alarm_handler.py -d || true
"""
"python-xml | python2.5-xml",
"python-dbus | python2.5-dbus",
])
+ maemoSpecificDepends = ", python-osso | python2.5-osso, python-hildon | python2.5-hildon"
p.depends += {
- "chinook": "",
- "diablo": "",
- "fremantle": ", python-glade2",
- "mer": ", python-glade2",
+ "debian": "",
+ "chinook": maemoSpecificDepends,
+ "diablo": maemoSpecificDepends,
+ "fremantle": maemoSpecificDepends,
+ "mer": maemoSpecificDepends,
}[distribution]
p.recommends = ", ".join([
- "python-osso | python2.5-osso",
- "python-hildon | python2.5-hildon",
])
p.section = {
+ "debian": "comm",
"chinook": "communication",
"diablo": "user/network",
"fremantle": "user/network",
}[distribution]
p.arch = "all"
p.urgency = "low"
- p.distribution = "chinook diablo fremantle mer"
+ p.distribution = "chinook diablo fremantle mer debian"
p.repository = "extras"
p.changelog = __changelog__
p.postinstall = __postinstall__