-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upload e Download de ativos digitais grandes #187
Conversation
Alteração em add_asset e update_asset Alteração em get_asset se o arquivo for grande: - a execução de add_asset e update_asset em duas etapas: primeiramente executando opac_ssm.upload_file que retorna o nome do arquivo grande e depois executando opac_ssm.add_asset incluindo asset.large_file_path. - a execução de get_asset também é em duas etapas: primeiramente executando opac_ssm.get_asset, depois executando opac_ssm.download_file, usando o arquivo identificado como asset.large_file_path. Relacionado com scieloorg/opac_ssm#390 tk185 Fixes scieloorg#185
try: | ||
os.unlink(file_path) | ||
except OSError: | ||
logger.info('%s' % file_path) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logger.info('%s' % file_path) | |
logger.error('%s' % file_path) |
update_params['metadata'] = json.dumps({}) | ||
elif not isinstance(metadata, dict): | ||
metadata = metadata or {} | ||
if not isinstance(metadata, dict): | ||
error_msg = 'Param "metadata" must be a Dict or None.' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
error_msg = 'Param "metadata" must be a Dict or None.' | |
error_msg = 'Param "metadata" must be a Dict.' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aguardando o teste local para aprovação
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comentários feitos anteriormente sem resposta
Alteração em add_asset e update_asset
Alteração em get_asset
se o arquivo for grande:
Relacionado com
scieloorg/opac_ssm#390
tk185
Fixes #185