equal
deleted
inserted
replaced
10 |
10 |
11 ============ |
11 ============ |
12 CubicWeb API |
12 CubicWeb API |
13 ============ |
13 ============ |
14 """ |
14 """ |
15 EXCLUDE_DIRS = ('test', 'tests', 'examples', 'data', 'doc', '.hg', 'migration') |
15 EXCLUDE_DIRS = ('test', 'tests', 'examples', 'data', 'doc', '.hg', 'migration') |
16 |
16 |
17 def __init__(self, output_fn, mod_names): |
17 def __init__(self, output_fn, mod_names): |
18 self.mod_names = mod_names |
18 self.mod_names = mod_names |
19 self.fn = open(output_fn, 'w') |
19 self.fn = open(output_fn, 'w') |
20 self.fn.write(self.HEADER) |
20 self.fn.write(self.HEADER) |
21 |
21 |
22 def done(self): |
22 def done(self): |
23 self.fn.close() |
23 self.fn.close() |
24 |
24 |
25 def gen_module(self, mod_name): |
25 def gen_module(self, mod_name): |
26 mod_entry = """ |
26 mod_entry = """ |
27 :mod:`%s` |
27 :mod:`%s` |
28 %s |
28 %s |
29 |
29 |