Hi Jerome,

    The code you sent works beautifully for this job.
    It would be nice if the user could change the phrase they were searching for,
that would make it an excellent addition to Gramps.

Ken.


On 01/02/12 00:48, jerome wrote:
Need testing before using on our main database (e.g to test on a copy/backup into a new Family Tree).

But attached 'RemoveAttributes' addons should generate the expected result.
Maybe need multiple passes if someone has been merged more than once.


Jérôme


--- En date de : Mar 31.1.12, jerome <romjerome@yahoo.fr> a écrit :

De: jerome <romjerome@yahoo.fr>
Objet: Re: [Gramps-users] A simple way to remove attributes
À: gramps-users@lists.sourceforge.net, mary-and-david@blueyonder.co.uk
Date: Mardi 31 janvier 2012, 11h55
Hi,


I do not know if it is a better method but some months ago,
Nick generated a tool (Gramps menu) as addon for migrating
my custom attribute into new tag environment. ie. check keys
on attribute without value (this was how I stored some
alternate markers on previous versions), create new tag with
these values, set them on related objects and remove
previous custom attributes.

Maybe I could try to re-use this code for only getting
'Merged Gramps ID' and remove these keys/values from
database?

To get a hierarchical tree for walking through the database
objects and levels could be an other improvement. e.g set
the type/name of object you want to remove! OK, a mapping
class might be too complicated for a limited use.

I will try to modify Nick's addon for only removing 'Merged
Gramps ID' rows from attribute tabs. This could be tested on
copies of our database or improved/reviewed by advanced
devs.


Regards,
Jérôme


--- En date de : Mar 31.1.12, Mary Lynch <mary-and-david@blueyonder.co.uk>
a écrit :

De: Mary Lynch <mary-and-david@blueyonder.co.uk>
Objet: Re: [Gramps-users] A simple way to remove attributes
À: gramps-users@lists.sourceforge.net
Date: Mardi 31 janvier 2012, 11h20


  

    
  
  
    On 30/01/2012 20:56, Ken B wrote:
    
      
      Hello All,

        

            Does anyone know a simple
way to remove multiple attributes
        from a database?

            I am thinking of the
"Merged Gramps ID" added by default
        when importing a shared file. It
would be nice if there was an
        option on whether or not this is
added. I have over 2000 people
        with this attribute and it will
be a long job to edit each
        person to remove this.

            Any help, or ideas will
be greatly appreciated.

        

        Many thanks,

        Ken.

    
    

    

    I did something similar by exporting my tree
to XML, decompressing
    the file, editing it to remove unwanted
attributes, then importing
    to a new tree. I would be interested to know
of a better method.

    

    Mary Lynch

    

    

  


-----La pièce jointe associée suit-----

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft
developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5,
CSS3, MVC3,
Metro Style Apps, more. Free future releases when you
subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
-----La pièce jointe associée suit-----

_______________________________________________
Gramps-users mailing list
Gramps-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gramps-users


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft
developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5,
CSS3, MVC3,
Metro Style Apps, more. Free future releases when you
subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Gramps-users mailing list
Gramps-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gramps-users
>


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d


_______________________________________________
Gramps-devel mailing list
Gramps-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gramps-devel