Mercurial > MadButterfly
comparison pyink/html5css3.py @ 1354:f92be354ad24
Refactory code to layer_parser.reset_layers()
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Sun, 13 Feb 2011 13:12:10 +0800 |
parents | ce19a11657a7 |
children | cf5ed0b8f45d |
comparison
equal
deleted
inserted
replaced
1353:ce19a11657a7 | 1354:f92be354ad24 |
---|---|
61 | 61 |
62 self._start_component_manager() | 62 self._start_component_manager() |
63 pass | 63 pass |
64 | 64 |
65 def reset(self): | 65 def reset(self): |
66 self._layers[:] = [] | 66 self.reset_layers() |
67 self._parse_all_layers() | |
68 pass | 67 pass |
69 pass | 68 pass |
70 | 69 |
71 | 70 |
72 class html5css3_ext(pybExtension.PYBindExtImp): | 71 class html5css3_ext(pybExtension.PYBindExtImp): |
73 def save(self, module, doc, filename): | 72 def save(self, module, doc, filename): |
74 parser = dom_parser() | 73 parser = dom_parser() |
75 parser.start_handle(doc.rdoc) | 74 parser.start_handle(doc.rdoc) |
76 print parser._metadata_node | 75 |
76 print parser.all_comp_names() | |
77 print parser._layers | |
77 print 'save to ' + filename | 78 print 'save to ' + filename |
78 pass | 79 pass |
79 pass | 80 pass |
80 | 81 |
81 extension = (html5css3_ext(), | 82 extension = (html5css3_ext(), |