~openerp-chinese-team/openerp-china/openerp-china

« back to all changes in this revision

Viewing changes to oecn_base_fonts/oecn_base_fonts.py

  • Committer: JoshuaJan
  • Date: 2012-08-24 05:27:14 UTC
  • Revision ID: popkar77@gmail.com-20120824052714-az7x5huju9e4onb4
调整格式

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
#
18
18
##############################################################################
19
19
 
20
 
from openerp import SUPERUSER_ID
 
20
 
21
21
from reportlab.lib.styles import ParagraphStyle
22
22
from osv import osv
23
23
from tools.safe_eval import safe_eval as eval
28
28
    import openerp.report.render.rml2pdf.customfonts as cfonts
29
29
except ImportError:
30
30
    import report.render.rml2pdf.customfonts as cfonts
31
 
 
 
31
try:
 
32
    from openerp import SUPERUSER_ID
 
33
except ImportError:
 
34
    SUPERUSER_ID = 1
32
35
 
33
36
class oecn_base_fonts(osv.osv_memory):
34
37
    _name = "oecn.base.fonts"