__pretty_app_name__ = "DialCentral"
__app_name__ = "dialcentral"
__version__ = "1.0.6"
-__build__ = 4
+__build__ = 5
__app_magic__ = 0xdeadbeef
_data_path_ = os.path.join(os.path.expanduser("~"), ".dialcentral")
_user_settings_ = "%s/settings.ini" % _data_path_
if self._alarmHandler is not None:
self._alarmHandler.load_settings(config, "alarm")
-
- previousOrientation = config.getint(constants.__pretty_app_name__, "orientation")
- if previousOrientation == gtk.ORIENTATION_HORIZONTAL:
- hildonize.window_to_landscape(self._window)
- elif previousOrientation == gtk.ORIENTATION_VERTICAL:
- hildonize.window_to_portrait(self._window)
except ConfigParser.NoOptionError, e:
logging.exception(
"Settings file %s is missing section %s" % (
),
)
+ # @todo down here till this issue is fixed
+ try:
+ previousOrientation = config.getint(constants.__pretty_app_name__, "orientation")
+ if previousOrientation == gtk.ORIENTATION_HORIZONTAL:
+ hildonize.window_to_landscape(self._window)
+ elif previousOrientation == gtk.ORIENTATION_VERTICAL:
+ hildonize.window_to_portrait(self._window)
+ except ConfigParser.NoOptionError, e:
+ logging.exception(
+ "Settings file %s is missing section %s" % (
+ constants._user_settings_,
+ e.section,
+ ),
+ )
+ except ConfigParser.NoSectionError, e:
+ logging.exception(
+ "Settings file %s is missing section %s" % (
+ constants._user_settings_,
+ e.section,
+ ),
+ )
+
def save_settings(self, config):
"""
@note Thread Agnostic