Function
create_export
(
operation,
role_id,
label,
collection=None,
mime_type=None,
meta=None,
)
Source from the content-addressed store, hash-verified
| 103 | |
| 104 | |
| 105 | def create_export( |
| 106 | operation, |
| 107 | role_id, |
| 108 | label, |
| 109 | collection=None, |
| 110 | mime_type=None, |
| 111 | meta=None, |
| 112 | ): |
| 113 | export = Export.create( |
| 114 | operation, |
| 115 | role_id, |
| 116 | label, |
| 117 | collection=collection, |
| 118 | mime_type=mime_type, |
| 119 | meta=meta, |
| 120 | ) |
| 121 | db.session.commit() |
| 122 | return export |
| 123 | |
| 124 | |
| 125 | def complete_export(export_id, file_path, file_name): |