Skip to content

XVTSolutions/ckanext-vdojstats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requirement

installment of the pdf liburaries

pip install -r pip-requirements.txt

tweaking for xhtml2pdf with reportlab 3.0

  1. open file /usr/lib/ckan/default/local/lib/python2.7/site-packages/xhtml2pdf/util.py", line 39, in
  2. comment out the below:

    if not (reportlab.Version[0] == "2" and reportlab.Version[2] >= "1"):

    raise ImportError("Reportlab Version 2.1+ is needed!")

    REPORTLAB22 = (reportlab.Version[0] == "2" and reportlab.Version[2] >= "2")

  3. add the below:

    if not (reportlab.Version[:3]>="2.1"):

    raise ImportError("Reportlab Version 2.1+ is needed!")

    REPORTLAB22 = (reportlab.Version[:3]>="2.1")

Configuration

Add the below anywhere after the declaration of 'ckan.site_id' into your init file, such as development.ini, production.ini

  • #vdojstats
  • vdojstats.export_dir = /tmp/export/%(ckan.site_id)s/
  • vdojstats.export_header = Victoria DoJ