diff options
author | Aurélien Bompard <aurelien@bompard.org> | 2012-10-04 12:00:50 +0200 |
---|---|---|
committer | Aurélien Bompard <aurelien@bompard.org> | 2012-10-04 12:00:50 +0200 |
commit | 7dd3941e8551d0013c9229e8a74ec64578eeb7b7 (patch) | |
tree | 14bb9db2210218a5706f62599b7ea281f080de05 /kittystore/storm/model.py | |
parent | 53876c68ecf3aaccab42c90df103cc79965c53bc (diff) | |
download | kittystore-7dd3941e8551d0013c9229e8a74ec64578eeb7b7.tar.gz kittystore-7dd3941e8551d0013c9229e8a74ec64578eeb7b7.tar.xz kittystore-7dd3941e8551d0013c9229e8a74ec64578eeb7b7.zip |
Use references for the attachments in the model
Diffstat (limited to 'kittystore/storm/model.py')
-rw-r--r-- | kittystore/storm/model.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/kittystore/storm/model.py b/kittystore/storm/model.py index 8f74fea..00f3962 100644 --- a/kittystore/storm/model.py +++ b/kittystore/storm/model.py @@ -86,3 +86,13 @@ class Attachment(object): encoding = Unicode() size = Int() content = RawStr() + + +# References + +Email.attachments = ReferenceSet( + (Email.list_name, + Email.message_id), + (Attachment.list_name, + Attachment.message_id), + ) |