Mercurial > MadButterfly
comparison pyink/consistency.py @ 1280:434f588fcde4
Handle the change of attribute 'start' and 'end'. We do reset here. However, we should be able to optimize it latter to update the scenes directly.
author | wycc |
---|---|
date | Fri, 14 Jan 2011 00:00:11 +0800 |
parents | 1b03b6d9a915 |
children | e12472f8eef3 |
comparison
equal
deleted
inserted
replaced
1279:1b03b6d9a915 | 1280:434f588fcde4 |
---|---|
132 def do_remove_node(self, node, child): | 132 def do_remove_node(self, node, child): |
133 self._remove_node_recursive(node, child) | 133 self._remove_node_recursive(node, child) |
134 pass | 134 pass |
135 | 135 |
136 def do_attr_modified(self, node, name, old_value, new_value): | 136 def do_attr_modified(self, node, name, old_value, new_value): |
137 if node.name() == 'ns0:scene' and name == 'ref': | 137 if node.name() == 'ns0:scene': |
138 try: | 138 if name == 'ref': |
139 if new_value: | 139 try: |
140 raise ValueError('The new_value is not empty') | 140 if new_value: |
141 self._domviewui.reset() | 141 raise ValueError('The new_value is not empty') |
142 except: | 142 self._domviewui.reset() |
143 traceback.print_exc() | 143 except: |
144 traceback.print_exc() | |
145 pass | |
144 pass | 146 pass |
145 pass | 147 elif name == 'end' or name == 'start': |
148 self._domviewui.reset() | |
149 pass | |
150 | |
146 pass | 151 pass |
147 pass | 152 pass |