Mercurial > MadButterfly
comparison pyink/domview.py @ 1275:776b024ae8f9
Fix the buggy implementation of reset()
- old implementation is too buggy to make a lot wrong assumption.
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Wed, 12 Jan 2011 21:41:26 +0800 |
parents | a4d3838264dd |
children | 0442ae9c2ac2 |
comparison
equal
deleted
inserted
replaced
1274:a4d3838264dd | 1275:776b024ae8f9 |
---|---|
349 self._init_metadata() | 349 self._init_metadata() |
350 self._parse_all_layers() | 350 self._parse_all_layers() |
351 pass | 351 pass |
352 | 352 |
353 def reset(self): | 353 def reset(self): |
354 self.handle_doc_root( self._doc, self._root) | 354 self._layers = [] |
355 self._parse_all_layers() | |
355 pass | 356 pass |
356 | 357 |
357 def dumpattr(self, n): | 358 def dumpattr(self, n): |
358 s = "" | 359 s = "" |
359 for a,v in n.attrib.items(): | 360 for a,v in n.attrib.items(): |