For use with upload_form:
csrf_token Token for detecting CSRF.
- db_changed Boolean. Whether the db was changed.
+ report_success Boolean. Whether to tell the user the db was changed.
session_expired Boolean. Whether the session has expired.
last_key Token to detect duplicate uploads.
db
<form action="" enctype="multipart/form-data" method="post">
<div>
${self.auth_parts.hidden_vars(csrf_token)}
- % if (db_changed or session_expired) and last_key:
+ % if (report_success or session_expired) and last_key:
<input type="hidden"
name="last_key"
value="${last_key}"