From: Jérôme <rom...@ya...> - 2008-02-06 10:44:17
|
Benny, Currently, I just tried to filter this manually !!! I just added MatchesxxxFilter modules missing on directories (modules which already exist on other object rules), called/added references on _init_ root module. (classname, handle) ; db.find_backlink_handles should be the same code for all objects maybe except note which is not a primary. > Filterproxy database allows probably only a person filter. That's logical ! Maybe we might filter more related data : 1. Current filter on persons (will keep only related family - hidden for user) 2. Matches events related to filtered persons; sources/places/media to filtered persons 3. Matches sources/places/media to filtered events (2.) 4. Matches repositories to filtered sources (1.) (3.) > It probably is a problem of design too True, what could be done with this multiples custom filter ???? I remember that Gramps used something like generic filter on report. I tried to find a way by adding this type on generic filter (Matchesxxx filter+Matchesxxx filter+Matchesxxx filter ...etc...) "If this follow one of this rules, then keep the data" Maybe this should be written on code as filter related to people used by current export and Filterproxy database. > The fact that sources/places not connected to the selected people are exported too could be seen as a feature or a bug... not sure what to choose ;-) Feature request ? http://bugs.gramps-project.org/view.php?id=1724 Jérôme Benny Malengier a écrit : > Jerome, > > this was the original idea. It is a lot of work though, and the more > general idea did not get implemented, only person filter. As Don stepped > down, a new developer would have to take this up. > It probably is a problem of design too. Filterproxy database allows > probably only a person filter. > > The fact that sources/places not connected to the selected people are > exported too could be seen as a feature or a bug... not sure what to > choose ;-) > > Benny > > 2008/2/5, Jérôme <rom...@ya... <mailto:rom...@ya...>>: > > Hi, > > > I am trying to export a part of my primary database by using new > Exporter, but seems that current filter on export are just dealing with > people. Unused families are removed but exported database keep all my > places, media objects, sources :( > > Filter rules framework allows to match other primary objects. > > By adding some MatchesxxxFilter and references on _init_.py, we are able > to filter more data. > > On *Event* : to add MatchesMediaFilter, MatchesPlaceFilter, > MatchesFamilyFilter ? > On *Family* : + MatchesMediaFilter, MatchesSourceFilter, > MatchesEventFiler, MatchesPlaceFilter > On *MediaObject* : + MatchesPersonFilter, MatchesEventFiler, > MatchesSourceFilter, MatchesPlaceFilter, MatchesFamilyFilter ? > On *Person* : (I would like to see MatchesPlace but not directly > related) > On *Place* : (I would like to see MatchesPerson too...) > On *Repository* : MatchesSourceFilter > On *Source* : + MatchesPersonFilter, MatchesEventFilter, > MatchesMediaFilter, MatchesFamilyFilter ? > > Person > -Family > --Event > ----Source > ----Media > --Media > ----Event > ----Source > --Source > ----Repository > ----Media > ----Family > ----Event > --Place > ----Event > > What should be done for Note objects ? > How to generate this type of big generic filter for Export ? > > > regards, > > Jérôme > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gramps-devel mailing list > Gra...@li... > <mailto:Gra...@li...> > https://lists.sourceforge.net/lists/listinfo/gramps-devel > > |