On Fri, Oct 17, 2008 at 8:10 AM, Matt Feifarek <[EMAIL PROTECTED]> wrote:
> On Fri, Oct 17, 2008 at 5:12 AM, Toby Catlin <[EMAIL PROTECTED]> wrote:
>>
>> I am sure this has been done before but i am having trouble finding any
>> references to existing code. As i don't want to reinvent the wheel i was
>> hoping someone could point me to the right place.
>> I have been building a reporting tool and i need to display lists of
>> objects in some form of grid. The objects are very similar to those that
>> would be returned from a database query eg:
>> testId
>> testName
>> elapsedTime
>> etc..
>> I simply need to display these values, preferably with paging. I guess
>> that this would be very similar code to CRUD code.
>
> You won't find anything in the docs; Pylons isn't that high-level. Perhaps
> TurboGears might have that sort of code in it.
>
> With Pylons, I've been working quite lately with the Yahoo UI libraries:
> http://developer.yahoo.com/yui/datatable/
>
> So far, it looks pretty promising. It's roll-your-own, but it's pretty easy
> to hook the pieces together. The Yahoo engineers seem to have thought of
> just about everything, so it becomes just a matter of providing the data
> from your model via a controller to the AJAX call.
>
yea they are plenty of solutions out there.
- all JS toolkits have one, just google for name + "grid"
in pure python you have
- toscawidgets (tw.grid)
- formalchemy (not exactly a simple grid)
- build your own it isn't really complex if you just want to show
data. Just pass in a list of dicts to the template and a "headers" and
build it out with something like this
<table>
for row in rows:
    <tr>
    for field in row
        <td>field</td>
    </tr>
</table>


> Good luck.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to