def get_formula(self, worksheet): if self.formula: if isinstance(self.formula,basestring): from poi.formula import Formula self.formula=Formula.read(self.formula,14) return str(self.formula) return None
def get_formula(self, worksheet): if self.formula: if isinstance(self.formula, basestring): from poi.formula import Formula self.formula = Formula.read(self.formula, 14) return str(self.formula) return None
def set_formula(self,value): formula=Formula.parse(value) cell=self._worksheet.get_cell(self._row, self._column) cell.set_formula(self._worksheet, formula)