* src/ColumnOrder.py: pychecker fixes

* src/DateParser.py: pychecker fixes
* src/DisplayModels.py: pychecker fixes
* src/gramps_main.py: pychecker fixes
* src/dates/Date_fr.py: pychecker fixes
* src/dates/Date_ru.py: pychecker fixes


svn: r3738
This commit is contained in:
Don Allingham 2004-11-19 03:59:53 +00:00
parent 6fa49c166b
commit 367d6f6b91
7 changed files with 10 additions and 7 deletions

View File

@ -1,4 +1,10 @@
2004-11-18 Don Allingham <dallingham@users.sourceforge.net>
* src/ColumnOrder.py: pychecker fixes
* src/DateParser.py: pychecker fixes
* src/DisplayModels.py: pychecker fixes
* src/gramps_main.py: pychecker fixes
* src/dates/Date_fr.py: pychecker fixes
* src/dates/Date_ru.py: pychecker fixes
* src/FamilyView.py: Handle reordering of spouses by drag
and drop
* src/RelLib.py: Allow the family list to be set externally

View File

@ -78,6 +78,5 @@ class ColumnOrder:
def toggled(self, cell, path, model):
node = model.get_iter((int(path),))
value = model.get_value(node,0)
value = not value
value = not model.get_value(node,0)
model.set(node,0,value)

View File

@ -34,7 +34,6 @@ __version__ = "$Revision$"
#
#-------------------------------------------------------------------------
import re
import time
import locale
import calendar

View File

@ -28,6 +28,8 @@ import time
import gobject
import gtk
from gettext import gettext as _
_GENDER = [ _(u'female'), _(u'male'), _(u'unknown') ]
#-------------------------------------------------------------------------

View File

@ -31,7 +31,6 @@ French-specific classes for parsing and displaying dates.
#
#-------------------------------------------------------------------------
import re
import calendar
#-------------------------------------------------------------------------
#

View File

@ -31,7 +31,6 @@ Russian-specific classes for parsing and displaying dates.
#
#-------------------------------------------------------------------------
import re
import calendar
#-------------------------------------------------------------------------
#

View File

@ -72,6 +72,7 @@ import DbPrompter
import TipOfDay
import ArgHandler
import Exporter
import RelImage
from QuestionDialog import *
@ -1075,12 +1076,10 @@ class Gramps:
return 1
def save_media(self,filename):
import RelImage
missmedia_action = 0
#-------------------------------------------------------------------------
def remove_clicked():
# File is lost => remove all references and the object itself
mobj = self.db.get_object_from_handle(ObjectId)
for p in self.db.get_family_handle_map().values():
nl = p.get_media_list()
for o in nl: