diff 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
line wrap: on
line diff
--- a/pyink/html5css3.py	Sun Feb 13 12:49:44 2011 +0800
+++ b/pyink/html5css3.py	Sun Feb 13 13:12:10 2011 +0800
@@ -63,8 +63,7 @@
         pass
 
     def reset(self):
-        self._layers[:] = []
-        self._parse_all_layers()
+        self.reset_layers()
         pass
     pass
 
@@ -73,7 +72,9 @@
     def save(self, module, doc, filename):
         parser = dom_parser()
         parser.start_handle(doc.rdoc)
-        print parser._metadata_node
+        
+        print parser.all_comp_names()
+        print parser._layers
         print 'save to ' + filename
         pass
     pass