Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 3
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)
Ejemplo n.º 4
0
 def get_some_neighbors_fixed(self):
     return analysis.some_fixed(self.neighbors)
Ejemplo n.º 5
0
 def get_some_children_fixed(self):
     return analysis.some_fixed(self.children)
Ejemplo n.º 6
0
 def get_some_nodes_fixed(self):
     return analysis.some_fixed(self.nodes)
Ejemplo n.º 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)
Ejemplo n.º 8
0
 def get_some_neighbors_fixed(self):
     return analysis.some_fixed(self.neighbors)
Ejemplo n.º 9
0
 def get_some_children_fixed(self):
     return analysis.some_fixed(self.children)
Ejemplo n.º 10
0
 def get_some_nodes_fixed(self):
     return analysis.some_fixed(self.nodes)