Skip to content

Commit

Permalink
cli: new flags for records create
Browse files Browse the repository at this point in the history
* NEW Adds new flag to `inveniomanage record create`, `--force` to
  force saving the record to the database even if the recid is already
  there.

Signed-off-by: Esteban J. G. Gabancho <[email protected]>
  • Loading branch information
egabancho committed Oct 1, 2015
1 parent 02cfd62 commit 9033114
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion invenio_records/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

import six
from flask import current_app
from sqlalchemy import exc
from werkzeug.utils import import_string

from invenio_ext.script import Manager
Expand Down Expand Up @@ -53,7 +54,6 @@ def convert_marcxml(source):
def create(source, schema=None, input_type='json', force=False):
"""Create new bibliographic record(s)."""
from .tasks.api import create_record

processor = current_app.config['RECORD_PROCESSORS'][input_type]
if isinstance(processor, six.string_types):
processor = import_string(processor)
Expand Down

0 comments on commit 9033114

Please sign in to comment.