yes, i would do the query in the controller, and output my custom HTML in the view that uses CSS to indent the <div> or whichever HTML element that you use to get your layout.
cfh On Monday, October 22, 2012 1:30:04 PM UTC-7, MJo wrote: > > I've got scheduler working and DB is getting data. Now the funny part > starts for newbie like me (scheduler were somewhat easy stuff but basics > like html&css not and add there also this framework to that soup).. How to > show that data? > > Am I supposed to utilize controllers/default.py: > def index(): > to return some dictionary? > > DB is something like: > > forename surname parent-id > 1. John Smith > 2. Lisa Jefferson > 3. Ricky Smith 1 > > So John has boy Ricky. > > I would like to layout web-page as: > > John Smith > Ricky Smith > Lisa Jefferson > > So shall I do DB call on controller to return everything using dictionary > and do parsing (put Ricky as indented/under related to John) on view? Or > should I somehow forget controller and just do everything on view? What is > the "right way"? > > I guess I have to use <div class> and/or <div id> like spell among css3 to > format it using good practices and current de facto standards. > --

