Doug,

My changes were in gramps40 and trunk only.

I suggest you raise a bug for this, it will be fixed anyway if we backport my regular expression changes to gramps34.

Nick.


On 09/08/13 12:39, doug wrote:
First report:

Place filters work fine in 3.4.6 (python 2.7) except that
Place with the <citation>  Date:="^$" doesn't select missing dates.


only one Event filter tested so far:
Events with the <citation> Citation Volume/Page:="^$" to select missing Vol/Pages crashes gramps.
Error Details:
===================

1306385: ERROR: gramps.py: line 107: Unhandled exception
Traceback (most recent call last):
  File "/usr/share/gramps34/src/Filters/SideBar/_SidebarFilter.py", line 109, in clicked
    self.clicked_func()
  File "/usr/share/gramps34/src/plugins/gramplet/Filter.py", line 60, in __filter_clicked
    self.gui.view.build_tree()
  File "/usr/share/gramps34/src/gui/views/listview.py", line 286, in build_tree
    self.model.rebuild_data()
  File "/usr/share/gramps34/src/gui/views/treemodels/flatbasemodel.py", line 559, in _rebuild_filter
    dlist = self.search.apply(self.db, allkeys, tupleind=1)
  File "/usr/share/gramps34/src/Filters/_GenericFilter.py", line 233, in apply
    res = m(db, id_list, cb_progress, tupleind)
  File "/usr/share/gramps34/src/Filters/_GenericFilter.py", line 166, in check_and
    val = all(rule.apply(db, person) for rule in flist if person)
  File "/usr/share/gramps34/src/Filters/_GenericFilter.py", line 166, in <genexpr>
    val = all(rule.apply(db, person) for rule in flist if person)
  File "/usr/share/gramps34/src/Filters/Rules/_MatchesFilterBase.py", line 79, in apply
    return filt.check(db, obj.handle)
  File "/usr/share/gramps34/src/Filters/_GenericFilter.py", line 209, in check
    return self.get_check_func()(db, [handle])
  File "/usr/share/gramps34/src/Filters/_GenericFilter.py", line 166, in check_and
    val = all(rule.apply(db, person) for rule in flist if person)
  File "/usr/share/gramps34/src/Filters/_GenericFilter.py", line 166, in <genexpr>
    val = all(rule.apply(db, person) for rule in flist if person)
  File "/usr/share/gramps34/src/Filters/Rules/Event/_HasCitation.py", line 59, in apply
    if HasCitationBase.apply(self, dbase, citation):
  File "/usr/share/gramps34/src/Filters/Rules/_HasCitationBase.py", line 67, in apply
    for citation_handle in object.get_citation_list():
AttributeError: 'Citation' object has no attribute 'get_citation_list'


System Information:
===================

Python version: 2.7.3rc2 (default, Apr 22 2012, 22:30:17) [GCC 4.6.3]
BSDDB version: 5.1.2 (5, 1, 29)
Gramps version: 3.4.6-0.SVN22823
LANG: en_GB.UTF-8
OS: Linux
Distribution: 3.2.0-4-amd64

GTK version    : (2, 24, 10)
pygtk version  : (2, 24, 0)
gobject version: (2, 28, 6)
cairo version  : (1, 8, 8)