pychecker fixes

svn: r2294
This commit is contained in:
Don Allingham 2003-10-30 04:18:17 +00:00
parent b67e68f304
commit aed31e7a33
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>
* src/RelLib.py: Person and Family now inherit from SourceNote
* src/EditPerson.py: Added source tab to apply generic sources

2
NEWS
View File

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

View File

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

View File

@ -51,7 +51,6 @@ import const
import RelLib
import Date
import Calendar
import Errors
from gettext import gettext as _
from Utils import for_each_ancestor
@ -83,7 +82,7 @@ class Rule:
labels = []
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
def values(self):
@ -790,10 +789,7 @@ class IsParentOfFilterMatch(Rule):
return self.map.has_key(p.getId())
def init_list(self,p):
# if self.map.has_key(p.getId()) == 1:
# loop_error(self.orig,p)
fam in p.getMainParents()
if fam:
if fam in p.getMainParents():
for parent in [fam.getFather (), fam.getMother ()]:
if parent:
self.map[parent.getId()] = 1

View File

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

View File

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

View File

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