(self)
| 751 | return render_template("admin/imports-add") |
| 752 | |
| 753 | def POST(self): |
| 754 | i = web.input("identifiers") |
| 755 | identifiers = [line.strip() for line in i.identifiers.splitlines() if line.strip()] |
| 756 | batch_name = "admin" |
| 757 | batch = imports.Batch.find(batch_name, create=True) |
| 758 | batch.add_items(identifiers) |
| 759 | add_flash_message("info", "Added the specified identifiers to import queue.") |
| 760 | raise web.seeother("/admin/imports") |
| 761 | |
| 762 | |
| 763 | class imports_by_date: |