def _setup_column(self, initial_quantity, inital_multi_entitlement):
     tree_model = MappedTreeStore(self._create_store_map(int, bool))
     column = QuantitySelectionColumn("test-col", tree_model, tree_model['quantity'],
                                      tree_model['multi-entitlement'])
     iter = tree_model.add_map(None, self._create_store_map(initial_quantity,
                                                            inital_multi_entitlement))
     return (column, tree_model, iter)
 def _setup_column(self, initial_quantity, inital_multi_entitlement):
     tree_model = MappedTreeStore(self._create_store_map(int, bool))
     column = QuantitySelectionColumn("test-col", tree_model,
                                      tree_model['quantity'],
                                      tree_model['multi-entitlement'])
     iter = tree_model.add_map(
         None,
         self._create_store_map(initial_quantity, inital_multi_entitlement))
     return (column, tree_model, iter)
Exemple #3
0
 def get_store(self):
     return MappedTreeStore(self.get_type_map())