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():
if not tool:
return inline_alert(T("Error"), T("Select an harvester.")) =
except ToolException as e:
......@@ -363,12 +363,14 @@ class Selector(object):
Field("id_teams", "reference teams", label="Team"),
Field("id_projects", "reference projects", label="Project"),
Field("host", "string", default=STORES[0], label="Store"),
Field("xml", "text", comment=tp_xml, label="MARCXML"),
Field("controller", "string", label="Automaton"),
Field("id_categories", "reference categories", label="Category"),
Field("mode", "string", default=mode_dry_run))
table.controller.requires = IS_IN_SET(CONTROLLERS) = IS_IN_SET(STORES)
table.id_categories.requires = IS_IN_DB(db, "categories.code")
table.id_projects.requires = IS_IN_DB(db, "projects.project")
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