def post_save(self): self.guid_index.add(self.guid) self.sort_index.add(self.id, maybe_datetime(self.timestamp))
def post_save(self): self.sort_index.add(self.id, maybe_datetime(self.timestamp)) self.guid_map[self.guid] = self.id
def test_maybe_datetime(self): self.assertIsInstance( utils.maybe_datetime(datetime(2010, 4, 29, 13, 49, 34, 112487)), float) self.assertIsInstance(utils.maybe_datetime(1272541774.0), float)
def test_maybe_datetime(self): self.assertIsInstance(utils.maybe_datetime( datetime(2010, 4, 29, 13, 49, 34, 112487)), float) self.assertIsInstance(utils.maybe_datetime(1272541774.0), float)