from collections import defaultdict
from datetime import datetime, date, timedelta
import logging
from collections import defaultdict
from datetime import datetime, date, timedelta
import logging
doc = book.wldocument(parse_dublincore=False)
html = doc.as_html(options={'gallery': "'%s'" % book.gallery_url()})
doc = book.wldocument(parse_dublincore=False)
html = doc.as_html(options={'gallery': "'%s'" % book.gallery_url()})