Did I find the right examples for you? yes no

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/w/h/WhooshAlchemy-HEAD/tests.py   WhooshAlchemy(Download)
      def add(title):
          item = self.Post(title=title)
          self.session.add(item)
          self.session.commit()
          return item
      self.assertEqual(res[0].id, b.id)
 
      a = self.Post(title=u'good old post', created=datetime.date.today() - datetime.timedelta(2))
      self.session.add(a)
      self.session.commit()
    def add(title, body):
      item = self.Post(title=title, body=body)
      self.session.add(item)
      self.session.commit()
      return item