Skip to content

Commit

Permalink
Spreadsheet: Added setitem and getitem methods
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed Jul 14, 2014
1 parent 8aec46f commit 7a612c6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Mod/Spreadsheet/Spreadsheet.py
Expand Up @@ -266,6 +266,12 @@ def __getattr__(self, key):
else:
return self.__dict__.__getitem__(key)

def __setitem__(self, key, value):
__setattr__(self, key, value)

def __getitem__(self, key):
return __getattr__(self, key)

def __getstate__(self):
self._cells["Type"] = self.Type
if hasattr(self,"Object"):
Expand Down

0 comments on commit 7a612c6

Please sign in to comment.