Skip to content

Commit

Permalink
Remove type
Browse files Browse the repository at this point in the history
  • Loading branch information
jordimas committed Aug 11, 2023
1 parent d877768 commit ed4bd4d
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 10 deletions.
1 change: 0 additions & 1 deletion cfg/projects/Dolibarr.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"type": "transifex",
"po_preprocessing" : "remove_untranslated",
"conversor_setup": {
"type" : "string",
"verb" : "add",
"command" : " --encoding=utf-8"
}
Expand Down
1 change: 0 additions & 1 deletion cfg/projects/LanguageTool.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"type": "transifex",
"po_preprocessing" : "remove_untranslated",
"conversor_setup": {
"type" : "string",
"verb" : "add",
"command" : " --encoding=utf-8"
}
Expand Down
1 change: 0 additions & 1 deletion cfg/projects/Tor.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"url": "https://app.transifex.com/otf/torproject",
"type": "transifex",
"conversor_setup": {
"type" : "string",
"verb" : "add",
"command" : " --encoding=utf-8"
}
Expand Down
1 change: 0 additions & 1 deletion cfg/projects/Zotero.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"url": "https://app.transifex.com/zotero/zotero",
"type": "transifex",
"conversor_setup": {
"type" : "string",
"verb" : "add",
"command" : " --encoding=utf-8"
}
Expand Down
1 change: 0 additions & 1 deletion cfg/projects/mucommander.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"url": "https://github.com/mucommander/mucommander",
"type": "git",
"conversor_setup": {
"type" : "string",
"verb" : "add",
"command" : " --encoding=utf-8"
}
Expand Down
4 changes: 1 addition & 3 deletions src/builder/jsonbackend.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,7 @@ def _process_conversor(self, fileset, conversor_values):
conversor_setup = ConversorSetupDTO()

for properties_attr, properties_value in conversor_values.items():
if properties_attr == "type":
conversor_setup.type = properties_value
elif properties_attr == "verb":
if properties_attr == "verb":
conversor_setup.verb = properties_value
elif properties_attr == "command":
conversor_setup.command = properties_value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"duplicates" : "msgctxt",
"retrieval_pattern": "https://.*?/ca/.*?",
"conversor_setup": {
"type" : "string",
"verb" : "add",
"command" : " --encoding=utf-8"
}
Expand Down
1 change: 0 additions & 1 deletion src/tests/builder-tests/testjsonbackend.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ def _validate_mozilla_project_mozilla_fileset(self, fileset):
return

def _validate_mozilla_project_conversor(self, conversor):
self.assertEquals(conversor.type, "string")
self.assertEquals(conversor.verb, "add")
self.assertEquals(conversor.command, " --encoding=utf-8")
return
Expand Down

0 comments on commit ed4bd4d

Please sign in to comment.