Mercurial > libervia-backend
comparison libervia/backend/plugins/plugin_blog_import_dokuwiki.py @ 4270:0d7bb4df2343
Reformatted code base using black.
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 19 Jun 2024 18:44:57 +0200 |
parents | 47401850dec6 |
children |
comparison
equal
deleted
inserted
replaced
4269:64a85ce8be70 | 4270:0d7bb4df2343 |
---|---|
375 | 375 |
376 opt_upload_images = options.get(self._blog_import.OPT_UPLOAD_IMAGES, None) | 376 opt_upload_images = options.get(self._blog_import.OPT_UPLOAD_IMAGES, None) |
377 try: | 377 try: |
378 media_repo = options["media_repo"] | 378 media_repo = options["media_repo"] |
379 if opt_upload_images: | 379 if opt_upload_images: |
380 options[ | 380 options[self._blog_import.OPT_UPLOAD_IMAGES] = ( |
381 self._blog_import.OPT_UPLOAD_IMAGES | 381 False # force using --no-images-upload |
382 ] = False # force using --no-images-upload | 382 ) |
383 info_msg = _( | 383 info_msg = _( |
384 "DokuWiki media files will be *downloaded* to {temp_dir} - to finish the import you have to upload them *manually* to {media_repo}" | 384 "DokuWiki media files will be *downloaded* to {temp_dir} - to finish the import you have to upload them *manually* to {media_repo}" |
385 ) | 385 ) |
386 except KeyError: | 386 except KeyError: |
387 media_repo = DEFAULT_MEDIA_REPO | 387 media_repo = DEFAULT_MEDIA_REPO |