~mathieu-julius/aeroo/openerp7.0.x

« back to all changes in this revision

Viewing changes to report_aeroo/ExtraFunctions.py

  • Committer: Mathieu VATEL
  • Date: 2014-03-05 15:11:00 UTC
  • Revision ID: mathieu@julius.fr-20140305151100-1wcz91dl8t0tzmik
[IMP] - improve the last commit to get the last version of lp:aeroo

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
from aeroolib.plugins.opendocument import _filter
54
54
 
55
55
try:
56
 
    import nltk
57
 
except:
58
 
    _logger.warning("ERROR IMPORTING nltk, if not installed, please install it:"
59
 
    " e.g.: apt-get install python-nltk")
60
 
 
61
 
from .domain_parser import domain2statement
62
 
 
63
 
try:
64
56
    from docutils.examples import html_parts # use python-docutils library
65
57
except ImportError, e:
66
58
    _logger.warning("ERROR IMPORTING docutils, if not installed, please install it:"
68
60
    rest_ok = False
69
61
else:
70
62
    rest_ok = True
 
63
 
 
64
try:
 
65
    import nltk
 
66
except:
 
67
    _logger.warning("ERROR IMPORTING nltk, if not installed, please install it:"
 
68
    " e.g.: apt-get install python-nltk")
 
69
 
71
70
try:
72
71
    import markdown
73
72
    from markdown import Markdown # use python-markdown library
99
98
else:
100
99
    wikitext_ok = True
101
100
 
 
101
from .domain_parser import domain2statement
 
102
 
102
103
class ExtraFunctions(object):
103
104
    """ This class contains some extra functions which
104
105
        can be called from the report's template.