On 19/08/13 22:57, Nick Hall wrote:
On 19/08/13 22:30, Serge Noiraud wrote:
Hi,

I have the following problem when parsing date in the gramplet filter for the person view :

2013-08-19 23:24:54.695: ERROR: gramps.py: line 107: Unhandled exception
Traceback (most recent call last):
  File "/home/gramps/gramps34/src/Filters/SideBar/_SidebarFilter.py", line 109, in clicked
    self.clicked_func()
  File "/home/gramps/gramps34/src/plugins/gramplet/Filter.py", line 60, in __filter_clicked
    self.gui.view.build_tree()
  File "/home/gramps/gramps34/src/gui/views/listview.py", line 286, in build_tree
    self.model.rebuild_data()
  File "/home/gramps/gramps34/src/gui/views/treemodels/flatbasemodel.py", line 559, in _rebuild_filter
    dlist = self.search.apply(self.db, allkeys, tupleind=1)
  File "/home/gramps/gramps34/src/Filters/_GenericFilter.py", line 232, in apply
    rule.requestprepare(db)
  File "/home/gramps/gramps34/src/Filters/Rules/_Rule.py", line 91, in requestprepare
    self.prepare(dbase)
  File "/home/gramps/gramps34/src/Filters/Rules/Person/_HasBirth.py", line 55, in prepare
    self.date = parser.parse(self.list[0])
NameError: global name 'parser' is not defined

Do I need to make a bug report ?

No.  I'll fix it.

The problem is that I cut & pasted code from gramps40 into gramps34.  I obviously didn't correct for the different imports properly.  I'll check every rule I changed.

Nick.


I've just had a look at every rule I changed in r22837.  This bug affected 4 rules, which should now be fixed.

Nick.