diff options
author | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2012-01-04 11:57:08 +0100 |
---|---|---|
committer | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2012-01-04 11:57:39 +0100 |
commit | 228c4470f40d66e8b9383321d44d89e2a1c0ecad (patch) | |
tree | 391a77e5994b76dd38ea4257c1b0d815659836d1 /mediagoblin/gmg_commands/import_export.py | |
parent | 010fe2d71bf8b1c47c12234466d759561df18355 (diff) | |
download | mediagoblin-228c4470f40d66e8b9383321d44d89e2a1c0ecad.tar.lz mediagoblin-228c4470f40d66e8b9383321d44d89e2a1c0ecad.tar.xz mediagoblin-228c4470f40d66e8b9383321d44d89e2a1c0ecad.zip |
Dot-Notation for MediaEntry.media_files
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 eda41f4c..7f699429 100644 --- a/mediagoblin/gmg_commands/import_export.py +++ b/mediagoblin/gmg_commands/import_export.py @@ -65,7 +65,7 @@ def _import_media(db, args): args._cache_path['queue']) for entry in db.MediaEntry.find(): - for name, path in entry['media_files'].items(): + for name, path in entry.media_files.items(): _log.info('Importing: {0} - {1}'.format( entry.title, name)) @@ -207,7 +207,7 @@ def _export_media(db, args): args._cache_path['queue']) for entry in db.MediaEntry.find(): - for name, path in entry['media_files'].items(): + for name, path in entry.media_files.items(): _log.info(u'Exporting {0} - {1}'.format( entry.title, name)) |