# HG changeset patch # User Thinker K.F. Li # Date 1294838406 -28800 # Node ID a4d3838264dd609abc200a6be319961dc253c12c # Parent 1d0474f2f6fa72d3f223e5a23ea6fc5261e1f145 Make public APIs being public for domview diff -r 1d0474f2f6fa -r a4d3838264dd pyink/domview.py --- a/pyink/domview.py Wed Jan 12 21:18:23 2011 +0800 +++ b/pyink/domview.py Wed Jan 12 21:20:06 2011 +0800 @@ -187,7 +187,7 @@ pass pass - def _parse_one_scene(self, scene_node): + def parse_one_scene(self, scene_node): assert scene_node.name() == 'ns0:scene' start = int(scene_node.getAttribute("start")) @@ -221,7 +221,7 @@ continue try: - start, end, scene_type = self._parse_one_scene(scene_node) + start, end, scene_type = self.parse_one_scene(scene_node) except: continue @@ -659,7 +659,7 @@ def insert_frames(self, layer_idx, frame_idx, num): layer = self._layers[layer_idx] for scene_node in layer.scenes: - start, end, tween_type = self._parse_one_scene(scene_node) + start, end, tween_type = self.parse_one_scene(scene_node) if start >= frame_idx: self.chg_scene_node(scene_node, start=(start + num)) pass @@ -686,7 +686,7 @@ last_rm = frame_idx + num - 1 # last removed frame for scene_node in layer.scenes: start, end, tween_type = \ - self._parse_one_scene(scene_node) + self.parse_one_scene(scene_node) if end < frame_idx: continue diff -r 1d0474f2f6fa -r a4d3838264dd pyink/domview_ui.py --- a/pyink/domview_ui.py Wed Jan 12 21:18:23 2011 +0800 +++ b/pyink/domview_ui.py Wed Jan 12 21:20:06 2011 +0800 @@ -386,7 +386,7 @@ fl_stack = self._fl_stack scene_nodes = self._dom.get_all_scene_node_of_layer(layer_idx) for scene_node in scene_nodes: - start, end, tween_name = self._dom._parse_one_scene(scene_node) + start, end, tween_name = self._dom.parse_one_scene(scene_node) fl_stack.mark_keyframe(layer_idx, start) fl_stack.set_keyframe_data(layer_idx, start, scene_node) @@ -568,7 +568,7 @@ if layer_idx == -1: raise ValueError, \ 'can not find the key for group %s' % (scene_group_id) - start, end, tween_name = self._dom._parse_one_scene(scene_node) + start, end, tween_name = self._dom.parse_one_scene(scene_node) tween_type = self._tween_type_names.index(tween_name) return layer_idx, (start, end, tween_type) @@ -722,7 +722,7 @@ self._dom.manage_scene_node(layer_idx, scene_node) start, end, tween_name = \ - self._dom._parse_one_scene(scene_node) + self._dom.parse_one_scene(scene_node) tween_type = self._tween_type_names.index(tween_name) tween_len = end - start + 1