Example #1
0
 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
Example #2
0
File: utils.py Project: ruema/pypoi
 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
Example #3
0
 def set_formula(self,value):
     formula=Formula.parse(value)
     cell=self._worksheet.get_cell(self._row, self._column)
     cell.set_formula(self._worksheet, formula)