From: Don A. <don...@co...> - 2003-12-03 04:57:47
|
I've checked in a fix for this into CVS. Don On Tue, 2003-12-02 at 16:51, Alexandre Duret-Lutz wrote: > (Do you deliberately remove the list from the Cc: each time you > answer? It's nice for other people to be able to follow public > discussions, or google error messages in the archives.) > > >>> "Don" == Don Allingham <don...@co...> writes: > > [...] > > >> Here is how to reproduce this: > >> > >> 1. start gramps on an empty database > >> 2. in the (empty) "people listing" view, click on the "+" button > >> 3. enter a dummy name for this person > >> 4. try to click on "Ok": boom! > >> > Don> I can't seem to reproduce this either. Can you make sure you are up on > Don> the latest CVS and try it again? I was able to add a person to a new > Don> database without any problems. > > I've just run `cvs up -CA && autoreconf -vfim && make install' > and I can still reproduce this reliably. I'm using anonymous > CVS and I think it is slightly out of sync wrt the master > repository, so to be precise the last ChangeLog entry I have > is > > 2003-12-02 Tim Waugh <tw...@re...> > * gramps.spec.in: Add more docs. > * Makefile.am: No need for dist-hook. > > > >> Traceback (most recent call last): > >> File "/home/adl/usr/share/gramps/EditPerson.py", line 1512, in on_apply_person_clicked > >> self.callback(self,self.add_places) > >> File "/home/adl/usr/share/gramps/gramps_main.py", line 1591, in new_after_edit > >> self.people_view.redisplay_person_list(epo.person) > >> File "/home/adl/usr/share/gramps/PeopleView.py", line 399, in redisplay_person_list > >> self.add_to_person_list(person,1) > >> File "/home/adl/usr/share/gramps/PeopleView.py", line 212, in add_to_person_list > >> self.goto_active_person() > >> File "/home/adl/usr/share/gramps/PeopleView.py", line 243, in goto_active_person > >> self.ptabs.set_current_page(self.model2page[model]) > >> KeyError: <PeopleStore.PeopleStore instance at 0x4156ff4c> > > > The message is still the same, except the location of the call > to new_after_edit. > > ~ % gramps > Internationalization library could not be loaded > Warn: Python Imaging Library not available > Traceback (most recent call last): > File "/home/adl/usr/share/gramps/EditPerson.py", line 1512, in on_apply_person_clicked > self.callback(self,self.add_places) > File "/home/adl/usr/share/gramps/gramps_main.py", line 1599, in new_after_edit > self.people_view.redisplay_person_list(epo.person) > File "/home/adl/usr/share/gramps/PeopleView.py", line 399, in redisplay_person_list > self.add_to_person_list(person,1) > File "/home/adl/usr/share/gramps/PeopleView.py", line 212, in add_to_person_list > self.goto_active_person() > File "/home/adl/usr/share/gramps/PeopleView.py", line 243, in goto_active_person > self.ptabs.set_current_page(self.model2page[model]) > KeyError: <PeopleStore.PeopleStore instance at 0x4156d50c> > > > In case some values may help I've added > > print id, val, model, iter, self.id2col.has_key(id) > print self.model2page > > at line 242 right before the call to set_current_page in > PeopleView.py. Here is the output: > > > I0 [', foo', 'I0', 'unknown', '', '', '@', '99999999', '99999999', ''] <PeopleStore.PeopleStore instance at 0x4156c46c> <GtkTreeIter at 0x8641e20> True > {} > > > I only entered 'foo' as firstname when editing the person, hence > the ', foo'. BTW, now that I wrote that, I notice that I do not > get the error when I enter a family name. That's probably why > you could not reproduce it; sorry I wasn't precise enough. > > 1. start gramps on an empty database > 2. in the (empty) "people listing" view, click on the "+" button > 3. enter a dummy firstname for this person, leave the family name empty > 4. try to click on "Ok": boom! > > HTH |