From add8e4fd65cc7f4b83f1ace4e0b0a4f014d085e9 Mon Sep 17 00:00:00 2001 From: oysteini Date: Sat, 5 Mar 2011 18:10:10 +0000 Subject: [PATCH] Bruker fileformat.write_action i Book.to_string. --- python/web/library/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/web/library/models.py b/python/web/library/models.py index 333449f..9e0c477 100644 --- a/python/web/library/models.py +++ b/python/web/library/models.py @@ -1,4 +1,5 @@ from django.db import models +import fileformat book_fields = [('title' , 'Title'), ('isbn' , 'ISBN'), ('id.id' , 'Identifier'), ('subtitle' , 'Subtitle'), ('category' , 'Category'), ('publisher' , 'Publisher'), @@ -50,6 +51,7 @@ class Book(models.Model): if commit: # generate commit string by sending self.to_dict to oysteini function print self.to_dict() + print fileformat.write_action(self.to_dict()) else: for field in book_fields: