Commits

Erik Hetzner committed b694938

use UUID for ID

  • Participants
  • Parent commits 963cb19

Comments (0)

Files changed (1)

File sphinx/builders/epub.py

 import re
 import sys
 import time
+import uuid
 import codecs
 import zipfile
 from os import path
         metadata['lang'] = self.esc(self.config.epub_language)
         metadata['publisher'] = self.esc(self.config.epub_publisher)
         metadata['copyright'] = self.esc(self.config.epub_copyright)
-        metadata['scheme'] = self.esc(self.config.epub_scheme)
-        metadata['id'] = self.esc(self.config.epub_identifier)
+        metadata['scheme'] = "UUID"
+        metadata['id'] = self.esc(uuid.uuid4().hex)
         metadata['date'] = self.esc(time.strftime('%Y-%m-%d'))
         metadata['files'] = files
         metadata['spine'] = spine