Line | |
---|
1 | from __future__ import absolute_import
|
---|
2 |
|
---|
3 | from collections import defaultdict
|
---|
4 | import os
|
---|
5 | import pprint
|
---|
6 | import xlrd
|
---|
7 |
|
---|
8 | from mako.template import Template
|
---|
9 |
|
---|
10 | class Base:
|
---|
11 | """
|
---|
12 | """
|
---|
13 |
|
---|
14 | @staticmethod
|
---|
15 | def render(context):
|
---|
16 | print 'base.render'
|
---|
17 | link = os.path.join(context['dirname'], 't2-1-%s.html' % context['result'][0])
|
---|
18 | with open(link, 'w') as f:
|
---|
19 | t2_1 = Template(filename='t2-1empty.template')
|
---|
20 | f.write(t2_1.render(**context))
|
---|
21 |
|
---|
22 | return os.path.basename(link)
|
---|
23 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.