FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 03-30-2012, 07:55 PM
Vratislav Podzimek
 
Default Prevent tracebacks caused by gi.overrides bug

---
pyanaconda/ui/gui/spokes/datetime_spoke.py | 24 ++++++++++++++++--------
1 files changed, 16 insertions(+), 8 deletions(-)

diff --git a/pyanaconda/ui/gui/spokes/datetime_spoke.py b/pyanaconda/ui/gui/spokes/datetime_spoke.py
index 0f45806..acbaa9e 100644
--- a/pyanaconda/ui/gui/spokes/datetime_spoke.py
+++ b/pyanaconda/ui/gui/spokes/datetime_spoke.py
@@ -121,14 +121,22 @@ class DatetimeSpoke(NormalSpoke):
store.append([item])

def existing_date(self, model, itr, user_data=None):
- day = model[itr][0]
- months_model = self._monthCombo.get_model()
- months_iter = self._monthCombo.get_active_iter()
- month = months_model[months_iter][0]
-
- years_model = self._yearCombo.get_model()
- years_iter = self._yearCombo.get_active_iter()
- year = years_model[years_iter][0]
+ day = 0
+ month = ""
+ year = 0
+
+ try:
+ day = model[itr][0]
+ months_model = self._monthCombo.get_model()
+ months_iter = self._monthCombo.get_active_iter()
+ month = months_model[months_iter][0]
+
+ years_model = self._yearCombo.get_model()
+ years_iter = self._yearCombo.get_active_iter()
+ year = years_model[years_iter][0]
+ except TypeError as typerr:
+ #FIXMEtherwise bug in gi.overrides causes tracebacks here
+ pass

try:
if not month:
--
1.7.4.4

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 10:06 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org