pychecker fixes

svn: r2294
This commit is contained in:
Don Allingham 2003-10-30 04:18:17 +00:00
parent 0acb576661
commit 8e5801b970
7 changed files with 20 additions and 10 deletions

View File

@ -1,3 +1,18 @@
2003-10-29 Don Allingham <dallingham@users.sourceforge.net>
* src/gramps_main.py: pychecker cleanup
* src/PeopleView.py: pychecker cleanup
* src/PeopleStore.py: pychecker cleanup
* src/EditPerson.py: pychecker cleanup
* src/QuickAdd.py: remove file
* src/SelectChild.py: Remove ability to add new person, since a separate
function for this already exists.
* src/gramps.glade: remvoe add button from select child dialog
* src/Makefile.am: remove QuickAdd.py
* src/intl.py: remove
* src/intl.c: remove
* src/TextDoc.py: remove
* src/DrawDoc.py: remove
2003-10-28 Don Allingham <dallingham@users.sourceforge.net> 2003-10-28 Don Allingham <dallingham@users.sourceforge.net>
* src/RelLib.py: Person and Family now inherit from SourceNote * src/RelLib.py: Person and Family now inherit from SourceNote
* src/EditPerson.py: Added source tab to apply generic sources * src/EditPerson.py: Added source tab to apply generic sources

View File

@ -8,6 +8,8 @@ Version 0.98.0
* When choosing parents, select the spouse of the first selected person to * When choosing parents, select the spouse of the first selected person to
make picking a family quicker. make picking a family quicker.
* Instant preferences. * Instant preferences.
* People and Relationships can now have sources not associated with any
event
* Bugfixes. * Bugfixes.
Version 0.9.5 -- the "Fix me up" release Version 0.9.5 -- the "Fix me up" release

View File

@ -151,7 +151,7 @@ class Calendar:
try: try:
return unicode(Calendar.MONTHS[val-1]) return unicode(Calendar.MONTHS[val-1])
except: except:
return "Illegal Month" return u'Illegal Month'
def check(self,year,month,day): def check(self,year,month,day):
return 1 return 1

View File

@ -51,7 +51,6 @@ import const
import RelLib import RelLib
import Date import Date
import Calendar import Calendar
import Errors
from gettext import gettext as _ from gettext import gettext as _
from Utils import for_each_ancestor from Utils import for_each_ancestor
@ -83,7 +82,7 @@ class Rule:
labels = [] labels = []
def __init__(self,list): def __init__(self,list):
assert(type(list) == type([]),"Argument is not a list") assert type(list) == type([]), "Argument is not a list"
self.list = list self.list = list
def values(self): def values(self):
@ -790,10 +789,7 @@ class IsParentOfFilterMatch(Rule):
return self.map.has_key(p.getId()) return self.map.has_key(p.getId())
def init_list(self,p): def init_list(self,p):
# if self.map.has_key(p.getId()) == 1: if fam in p.getMainParents():
# loop_error(self.orig,p)
fam in p.getMainParents()
if fam:
for parent in [fam.getFather (), fam.getMother ()]: for parent in [fam.getFather (), fam.getMother ()]:
if parent: if parent:
self.map[parent.getId()] = 1 self.map[parent.getId()] = 1

View File

@ -242,7 +242,6 @@ class Marriage:
self.seal_stat = obj.get_data("val") self.seal_stat = obj.get_data("val")
def lds_src_clicked(self,obj): def lds_src_clicked(self,obj):
import Sources
ord = self.family.getLdsSeal() ord = self.family.getLdsSeal()
if ord == None: if ord == None:
ord = RelLib.LdsOrd() ord = RelLib.LdsOrd()

View File

@ -379,7 +379,6 @@ class SourceEditor:
def add_src_clicked(self,obj): def add_src_clicked(self,obj):
import EditSource import EditSource
import RelLib
EditSource.EditSource(RelLib.Source(),self.db, self.sourceDisplay, self.update_display) EditSource.EditSource(RelLib.Source(),self.db, self.sourceDisplay, self.update_display)

View File

@ -30,7 +30,6 @@ __version__ = "$Revision$"
# GNOME/GTK modules # GNOME/GTK modules
# #
#------------------------------------------------------------------------ #------------------------------------------------------------------------
import gobject
import gtk import gtk
#------------------------------------------------------------------------ #------------------------------------------------------------------------