On Mon, Jun 30, 2014 at 01:55:29PM -0700, Joshua Byrne wrote:
>    I have just been wondering where to start so I can set up my template and
>    controllers to handle the situation.
The controller would have to accept parameters and then you'd use them
to create a filter to present the data. Something like

  def index(self, status=None):
    conditions = []
    if status is not None:
      conditions.append(model.Thing.status == status)
    then do the query here...

There might be a more elegant way of doing it.

-- 
Craig Small (@smallsees)   http://enc.com.au/       csmall at : enc.com.au
Debian GNU/Linux           http://www.debian.org/   csmall at : debian.org
GPG fingerprint:        5D2F B320 B825 D939 04D2  0519 3938 F96B DF50 FEA5

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/d/optout.

Reply via email to