Hello there,

I am just trying to write a demostration web page which list a number
of small pictures.
I want it be prgrammable in row and columns.

Suppose i write following line in controller.py
        def viewall(self):
                pics = [pics for pics in
Pictures.select(orderBy=Pictures.q.shortname)]
                return dict(pics=pics, column=4, max_row=4)

I actually find some code that can show each picture in a seperate DIV,
that's look good. But i was not able to "glue" those code into KID
template. So for me, the problem might be: How should I wrote code in
.KID template to represent these pictures' shortname in a table (column
and max_rows), accordingly? 


Regards
David


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to