On Monday, January 21, 2013 1:18:52 PM UTC-5, andrew b wrote: > > Well I found the solution to display limited fields. Here it tells you a > way to limit fields, but it was more than I needed: > http://sprox.org/tutorials/table.html > > What I did was set the tmpl_context.widget to my user table class > instance. And then set a variable with my filler class instance and used > get_value(user_name = 'somethingHere'). Instead of 'user_name' you could > use other attributes of your DB object like user_id which was the primary > key for my User DB. To get my user object I used 'request.identity['user']' > : > tmpl_context.widget = tUser_Table > fillerValue = tUser_Table_Value.get_value(user_name = > currentUserObject.user_name) > > Then in my template used: > ${tmpl_context.widget(value=fillerValue)} >
-- You received this message because you are subscribed to the Google Groups "TurboGears" group. To view this discussion on the web visit https://groups.google.com/d/msg/turbogears/-/sITlJG2ZWx4J. 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.

