Docker-in-Docker (DinD) capabilities of public runners deactivated. More info

Commit 7dc2b4ea authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Update model_selector.marc12 to add the field host.

parent bbe9d6d6
...@@ -322,6 +322,7 @@ def insert_marcxml(): ...@@ -322,6 +322,7 @@ def insert_marcxml():
if not tool: if not tool:
return inline_alert(T("Error"), T("Select an harvester.")) return inline_alert(T("Error"), T("Select an harvester.")) =
tool.process_xml(selector.xml) tool.process_xml(selector.xml)
except ToolException as e: except ToolException as e:
...@@ -363,12 +363,14 @@ class Selector(object): ...@@ -363,12 +363,14 @@ class Selector(object):
"marc12_selector", "marc12_selector",
Field("id_teams", "reference teams", label="Team"), Field("id_teams", "reference teams", label="Team"),
Field("id_projects", "reference projects", label="Project"), Field("id_projects", "reference projects", label="Project"),
Field("host", "string", default=STORES[0], label="Store"),
Field("xml", "text", comment=tp_xml, label="MARCXML"), Field("xml", "text", comment=tp_xml, label="MARCXML"),
Field("controller", "string", label="Automaton"), Field("controller", "string", label="Automaton"),
Field("id_categories", "reference categories", label="Category"), Field("id_categories", "reference categories", label="Category"),
Field("mode", "string", default=mode_dry_run)) Field("mode", "string", default=mode_dry_run))
table.controller.requires = IS_IN_SET(CONTROLLERS) table.controller.requires = IS_IN_SET(CONTROLLERS) = IS_IN_SET(STORES)
table.id_categories.requires = IS_IN_DB(db, "categories.code") table.id_categories.requires = IS_IN_DB(db, "categories.code")
table.id_projects.requires = IS_IN_DB(db, "projects.project") table.id_projects.requires = IS_IN_DB(db, "projects.project")
table.id_teams.requires = IS_IN_DB(db, "") table.id_teams.requires = IS_IN_DB(db, "")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment