diff options
author | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2012-02-25 23:53:11 +0100 |
---|---|---|
committer | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2012-02-28 20:52:35 +0100 |
commit | 3502958113c09c80830b7bee63c3d82b5ff72eb9 (patch) | |
tree | ae5037d788612b6822791cf8e2b6ba279ff2e475 /mediagoblin/tools/files.py | |
parent | e9f87f728ce67467272d9484b711e2a518537cb4 (diff) | |
download | mediagoblin-3502958113c09c80830b7bee63c3d82b5ff72eb9.tar.lz mediagoblin-3502958113c09c80830b7bee63c3d82b5ff72eb9.tar.xz mediagoblin-3502958113c09c80830b7bee63c3d82b5ff72eb9.zip |
Attachment support in the SQL backend
attachments working with the sql backend.
- SQL Schema for attachment files, ordering attachments by
their name, not by the submission order (as earlier).
- Dot-Notation for attachments, where missing.
- convert existing attachments over from mongo -> sql
Diffstat (limited to 'mediagoblin/tools/files.py')
-rw-r--r-- | mediagoblin/tools/files.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/tools/files.py b/mediagoblin/tools/files.py index b2f316b2..25c1a6e6 100644 --- a/mediagoblin/tools/files.py +++ b/mediagoblin/tools/files.py @@ -27,6 +27,6 @@ def delete_media_files(media): mg_globals.public_store.delete_file( listpath) - for attachment in media['attachment_files']: + for attachment in media.attachment_files: mg_globals.public_store.delete_file( attachment['filepath']) |