Exemple #1
0
 def post_save(self):
     self.guid_index.add(self.guid)
     self.sort_index.add(self.id, maybe_datetime(self.timestamp))
Exemple #2
0
 def post_save(self):
     self.sort_index.add(self.id, maybe_datetime(self.timestamp))
     self.guid_map[self.guid] = self.id
Exemple #3
0
 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)
Exemple #4
0
 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)