[Grok-dev] batching view
modiadi
adi at modiadi.com
Mon Mar 16 10:38:54 EDT 2009
Thank you,
I also foundz3c.table during the weekend.
I decided to use z3c.batching fpr the moment because I want to
understand the details. I will use some kind of persistent list but I
haven't decided yet.
I am still worried about the performance issue with a large collection
of news...
On Mar 16, 2009, at 10:09 AM, Christian Klinger wrote:
> Hello,
>
> if you want to display your data in a tabular fashion, i
> recommed you to look on a package called z3c.table. [1]
>
> This package allows you to do nearly everything related to tables.
> (Sorting, Batching, ...).
>
> If you need an examples howto deal with z3c.table it in grok, i can
> paste you some examples.
>
> [1] http://docs.zope.org/z3c.table/README.html
>
> HTH Christian
>
>
>> Hello everybody,
>>
>> I am a new user of Grok. First of all I would like to say that grok
>> it
>> is a great project!
>>
>> The project I try to do contains a news section. I will aggregate
>> news news from different sources on a daily basis(maybe 100 items per
>> day).
>>
>> I will have a grok.Container which contains news items based on
>> somethin like this :
>>
>> class INews(interface.Interface):
>> title = schema.TextLine(...)
>> description = schema.Text(...)
>> pubDate = schema.Date(....)
>>
>> I have a few issues which I am not sure how to deal with :
>>
>> 1. How to do a batching view of the entire news collection? I see
>> this
>> as a list with maybe 10 news items sorted by date with previous and
>> next links.
>>
>> 2. What if I would like to filter some results based on a search
>> pattern?
>>
>> 3. I am not sure yet if an approach like this (keeping news items
>> in a
>> container) will work with a large database.
>>
>> Any help would be appreciated.
>>
>> PS: if the answer is not really trivial, I am would like to write a
>> tutorial about a batching view because I believe that it is an
>> important part of most web apps
>>
>> Thank you !
>
> _______________________________________________
> Grok-dev mailing list
> Grok-dev at zope.org
> http://mail.zope.org/mailman/listinfo/grok-dev
>
More information about the Grok-dev
mailing list