def save(self): for key in self.__dict__: if key[0] == '_' or key == 'pendingReturns': continue id = _get_hash(key) value = self.__dict__[key] value = _pack(value) storage_set(code, self._table_id, id, value)
def auctionEnd(self, value): self._auctionEnd = value id = _get_hash('auctionEnd') value = _pack(value) storage_set(code, self._table_id, id, value)
def beneficiary(self, value): self._beneficiary = value id = _get_hash('beneficiary') value = _pack(value) storage_set(code, self._table_id, id, value)
def greeting(self, value): self._greeting = value storage_set(code, N('mytable'), N('greeting'), value.encode('utf8'))