How to display non private attributes and make them private with Supertool

Thank you emyoulation,
It seems we don’t speak about the same thing.

For example, with “Attributs_des_sources.script”, I can see my sources with their attributes (Value 3 in Sources-1.png) :

[Gramps SuperTool script file]
version=1

[title]
Attributs_des_sources

[category]
Sources

[initial_statements]
# Valeurs modifiables - début
# Valeurs possibles:  'texte' ou '*'

attribut_type    = '*'
attribut_valeur = '*'

# Valeurs modifiables - fin

gid = []

[statements]
for attribute in attributes:
 if attribut_type == '*' and attribut_valeur == '*':
  gid.append(gramps_id)
  break
 
 if attribut_type == '*':
  if attribute[1] == attribut_valeur:
   gid.append(gramps_id)
   break
 elif attribut_valeur == '*':
  if attribute[0] == attribut_type:
   gid.append(gramps_id)
   break
 else:
  if attribute == (attribut_type, attribut_valeur):
   gid.append(gramps_id)
   break

[filter]
gramps_id in gid

[expressions]
gramps_id, title, attributes

[scope]
all

[unwind_lists]
False

[commit_changes]
False

[summary_only]
False

How can i do for make private these attributes Value 3, like in Sources-2.png but with Supertool?

Thank you for your answer!

1 Like