Skip to content

Commit

Permalink
wx.metadata/mdlib: fix script file header, import py modules accordin…
Browse files Browse the repository at this point in the history
…g flake8
  • Loading branch information
tmszi committed Jul 2, 2020
1 parent ea1f8ea commit d31dadf
Showing 1 changed file with 26 additions and 11 deletions.
37 changes: 26 additions & 11 deletions grass7/gui/wxpython/wx.metadata/mdlib/mdpdffactory.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,34 @@
try:
from owslib.iso import *
except:
sys.exit('owslib library is missing. Check requirements on the manual page < https://grasswiki.osgeo.org/wiki/ISO/INSPIRE_Metadata_Support >')
import tempfile, sys, subprocess, os
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@module mdpdffactory
@brief Pdf creator
Classes:
- mdpdffactory::MapBBFactory
- mdpdffactory::MyTheme
- mdpdffactory::MD_ITEM
- mdpdffactory::PdfCreator
- mdpdffactory::Point
"""

import math
import os
import subprocess
import tempfile

from core.gcmd import GWarning

from grass.pygrass.utils import set_path
from grass.script import core as grass
from grass.script.utils import get_lib_path
from core.gcmd import GError, GMessage, GWarning

set_path(modulename='wx.metadata', dirname='mdlib')

import math
from reportlab.platypus import Paragraph, Image, Table
from reportlab.platypus import Image, Paragraph, Table
from reportlab.platypus import PageBreak
from .mdpdftheme import *

set_path(modulename='wx.metadata', dirname='mdlib')
from .mdpdftheme import CENTER, DefaultTheme, H1, H4, LEFT, Pdf, T1, \
T2, T3


class MyTheme(DefaultTheme):
Expand Down

0 comments on commit d31dadf

Please sign in to comment.