~shineit/openerp-china/pdf-font-for-any-language

« back to all changes in this revision

Viewing changes to oecn_base_fonts/oecn_base_fonts.py

  • Committer: Tony Gu
  • Date: 2012-01-20 05:47:56 UTC
  • Revision ID: tony@openerp.cn-20120120054756-kiq76du55d394zwf
make it compatible with V6.1 and lower

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
17
#
18
18
##############################################################################
19
 
import openerp.report.render.rml2pdf.customfonts as cfonts
20
19
from reportlab.lib.styles import ParagraphStyle
21
20
from osv import osv
 
21
# make this module compaitible with V6.1 and lower
 
22
try:
 
23
    import openerp.report.render.rml2pdf.customfonts as cfonts
 
24
except ImportError:
 
25
    import report.render.rml2pdf.customfonts as cfonts
 
26
 
22
27
 
23
28
class oecn_base_fonts(osv.osv_memory):
24
29
    _name = "oecn.base.fonts"