Exemple #1
0
 def analyze_selection():
     # A) calling ancestor
     if not Immediate.analyze_selection(): return False
     # B) validating
     cache = context.application.cache
     transformed_nodes = cache.transformed_nodes
     translated_nodes = cache.translated_nodes
     if len(transformed_nodes) == 0: return False
     if (len(translated_nodes) == 1) and (len(cache.rotated_nodes) == 0): return False
     if some_fixed(transformed_nodes): return False
     # C) passed all tests:
     return True
Exemple #2
0
 def analyze_selection():
     # A) calling ancestor
     if not Immediate.analyze_selection(): return False
     # B) validating
     cache = context.application.cache
     transformed_nodes = cache.transformed_nodes
     translated_nodes = cache.translated_nodes
     if len(transformed_nodes) == 0: return False
     if (len(translated_nodes) == 1) and (len(cache.rotated_nodes) == 0):
         return False
     if some_fixed(transformed_nodes): return False
     # C) passed all tests:
     return True
 def get_some_nodes_without_children_fixed(self):
     #print "DEBUG self.nodes_without_children:", self.nodes_without_children
     return analysis.some_fixed(self.nodes_without_children)
 def get_some_neighbors_fixed(self):
     return analysis.some_fixed(self.neighbors)
 def get_some_children_fixed(self):
     return analysis.some_fixed(self.children)
 def get_some_nodes_fixed(self):
     return analysis.some_fixed(self.nodes)
Exemple #7
0
 def get_some_nodes_without_children_fixed(self):
     #print "DEBUG self.nodes_without_children:", self.nodes_without_children
     return analysis.some_fixed(self.nodes_without_children)
Exemple #8
0
 def get_some_neighbors_fixed(self):
     return analysis.some_fixed(self.neighbors)
Exemple #9
0
 def get_some_children_fixed(self):
     return analysis.some_fixed(self.children)
Exemple #10
0
 def get_some_nodes_fixed(self):
     return analysis.some_fixed(self.nodes)