Пример #1
0
 def initializeFromToken(self, token, context=None):
     super(TestClass3, self).initializeFromToken(token, context)
     for name, val in token.iteritems():
         if name not in token.RESERVED_KEYS:
             if isinstance(val, StorageToken):
                 val = Serializable.createFromToken(val, context)
             self._data[name] = val
 def initializeFromToken(self, token, context=None):
     super(TestClass3, self).initializeFromToken(token, context)
     for name, val in token.iteritems():
         if name not in token.RESERVED_KEYS:
             if isinstance(val, StorageToken):
                 val = Serializable.createFromToken(val, context)
             self._data[name] = val
Пример #3
0
 def testCreationFromToken(self):
     token = StorageToken(None, self.TEST_CLASS.CLASS_ID)
     instance = Serializable.createFromToken(token)
 def testCreationFromToken(self):
     token = StorageToken(None, self.TEST_CLASS.CLASS_ID)
     instance = Serializable.createFromToken(token)