Update opolka/ScoDoc from ScoDoc/ScoDoc #2

Merged
opolka merged 1272 commits from ScoDoc/ScoDoc:master into master 2024-05-27 09:11:04 +02:00
2 changed files with 5 additions and 3 deletions
Showing only changes of commit 2c209313c6 - Show all commits

View File

@ -1,7 +1,7 @@
# -*- mode: python -*- # -*- mode: python -*-
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
SCOVERSION = "9.6.50" SCOVERSION = "9.6.51"
SCONAME = "ScoDoc" SCONAME = "ScoDoc"

View File

@ -55,6 +55,7 @@ def usage():
anonymize_name = "random_text_md5(8)" anonymize_name = "random_text_md5(8)"
anonymize_date = "'1970-01-01'" anonymize_date = "'1970-01-01'"
anonymize_false = "FALSE"
anonymize_question_str = "'?'" anonymize_question_str = "'?'"
anonymize_null = "NULL" anonymize_null = "NULL"
@ -69,13 +70,14 @@ ANONYMIZED_FIELDS = {
"identite.nom": anonymize_name, "identite.nom": anonymize_name,
"identite.prenom": anonymize_name, "identite.prenom": anonymize_name,
"identite.nom_usuel": anonymize_null, "identite.nom_usuel": anonymize_null,
"identite.civilite": "'X'", "identite.civilite_etat_civil" : anonymize_null,
"identite.prenom_etat_civil" : anonymize_null,
"identite.date_naissance": anonymize_date, "identite.date_naissance": anonymize_date,
"identite.lieu_naissance": anonymize_question_str, "identite.lieu_naissance": anonymize_question_str,
"identite.dept_naissance": anonymize_question_str, "identite.dept_naissance": anonymize_question_str,
"identite.nationalite": anonymize_question_str, "identite.nationalite": anonymize_question_str,
"identite.statut": anonymize_null, "identite.statut": anonymize_null,
"identite.boursier": anonymize_null, "identite.boursier": anonymize_false,
"identite.photo_filename": anonymize_null, "identite.photo_filename": anonymize_null,
"identite.code_nip": anonymize_null, "identite.code_nip": anonymize_null,
"identite.code_ine": anonymize_null, "identite.code_ine": anonymize_null,