title: Turbogears: duplicate controller method for filtered objects
body: <p>If you have a controller method like so:</p>
  <pre><code>@expose('example.templates.example.index')
  def index(self, *args, **kw):
      fruits=session.query(model.Fruit).all()
      # some code working on fruits
      return dict(fruits=fruits)
  </code></pre>
  <p>How can I duplicate the method for the same html rendering but with filtered objects like example</p>
  <pre><code>@expose('example.templates.example.index')
  def filtered(self, name=&quot;apple&quot;, *args, **kw):
      fruits=session.query(model.Fruit).filter_by(name=name).all()
      # some code working on fruits (same as in index)
      # how to not duplicate the code but duplicate method with different input fruits?
      return dict(fruits=fruits)
  </code></pre>
  <p>how to not duplicate the code but duplicate only method with different input fruits?
  I wish to have separate endpoints working the same but with filtered input.</p>