parameters: (self, book)
docstring: Creates configuration file for booktype2mpdf.php script.
  
          Configuration file is read by the booktype2mpdf.php script. It is
          how we pass information to the PHP script which will finally
          create and format the PDF file.
  
          :Args:
            - book: EPUB Book object
docstring_summary: Creates configuration file for booktype2mpdf.php script.
docstring_tokens: Creates configuration file for booktype2mpdf . php script .
function: def _write_configuration(self, book):
          """Creates configuration file for booktype2mpdf.php script.
  
          Configuration file is read by the booktype2mpdf.php script. It is
          how we pass information to the PHP script which will finally
          create and format the PDF file.
  
          :Args:
            - book: EPUB Book object
          """
  
          dc_metadata = self.get_metadata(book)
  
          data = {'metadata': dc_metadata, 'config': self.config}
          data.update(self.get_extra_configuration())
  
          f = codecs.open('{}/config.json'.format(self.sandbox_path), 'wt', 'utf8')
          f.write(unicode(json.dumps(data), 'utf8'))
          f.close()
function_tokens: def _write_configuration ( self , book ) : dc_metadata = self . get_metadata ( book ) data = { 'metadata' : dc_metadata , 'config' : self . config } data . update ( self . get_extra_configuration ( ) ) f = codecs . open ( '{}/config.json' . format ( self . sandbox_path ) , 'wt' , 'utf8' ) f . write ( unicode ( json . dumps ( data ) , 'utf8' ) ) f . close ( )