diff options
author | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2011-11-23 00:10:42 +0100 |
---|---|---|
committer | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2011-12-05 21:08:58 +0100 |
commit | ec82fbd85c93c88d177e9f5c7a7414a2b47fa17e (patch) | |
tree | adefa1d036acc06a001b64cc1eb08f0448204ae4 /mediagoblin/gmg_commands/import_export.py | |
parent | 1ceb4fc8682dd00c15376b75a3d9222cac6fb5bd (diff) | |
download | mediagoblin-ec82fbd85c93c88d177e9f5c7a7414a2b47fa17e.tar.lz mediagoblin-ec82fbd85c93c88d177e9f5c7a7414a2b47fa17e.tar.xz mediagoblin-ec82fbd85c93c88d177e9f5c7a7414a2b47fa17e.zip |
Dot-Notation for MediaEntry.title
Diffstat (limited to 'mediagoblin/gmg_commands/import_export.py')
-rw-r--r-- | mediagoblin/gmg_commands/import_export.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mediagoblin/gmg_commands/import_export.py b/mediagoblin/gmg_commands/import_export.py index 4ec17d47..1308f09e 100644 --- a/mediagoblin/gmg_commands/import_export.py +++ b/mediagoblin/gmg_commands/import_export.py @@ -67,7 +67,7 @@ def _import_media(db, args): for entry in db.media_entries.find(): for name, path in entry['media_files'].items(): _log.info('Importing: {0} - {1}'.format( - entry['title'], + entry.title, name)) media_file = mg_globals.public_store.get_file(path, mode='wb') @@ -209,7 +209,7 @@ def _export_media(db, args): for entry in db.media_entries.find(): for name, path in entry['media_files'].items(): _log.info(u'Exporting {0} - {1}'.format( - entry['title'], + entry.title, name)) try: mc_file = media_cache.get_file(path, mode='wb') |