コード例 #1
0
 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)
コード例 #2
0
 def auctionEnd(self, value):
     self._auctionEnd = value
     id = _get_hash('auctionEnd')
     value = _pack(value)
     storage_set(code, self._table_id, id, value)
コード例 #3
0
 def beneficiary(self, value):
     self._beneficiary = value
     id = _get_hash('beneficiary')
     value = _pack(value)
     storage_set(code, self._table_id, id, value)
コード例 #4
0
 def greeting(self, value):
     self._greeting = value
     storage_set(code, N('mytable'), N('greeting'), value.encode('utf8'))