[Zope] km net news: missing rate and genpop?

Kevin Dangoor kid@kendermedia.com
Fri, 26 May 2000 10:38:05 -0400


Hi,

    I'm afraid this particular aspect is not very well documented. genpop is
a PythonMethod that is in the Product itself (in the KMArticleStore). To add
the article rating to the page, all you need to do is put a form in your
article_footer (or header) like this:

<form action=rate method=get>
<center>
<table>
<tr><td>Boring</td><td>
<input type=radio name="newpoints:int" value=0>
<input type=radio name="newpoints:int" value=1>
<input type=radio name="newpoints:int" value=2>
<input type=radio name="newpoints:int" value=3>
<input type=radio name="newpoints:int" value=4>
<input type=radio name="newpoints:int" value=5>
<input type=radio name="newpoints:int" value=6>
<input type=radio name="newpoints:int" value=7>
<input type=radio name="newpoints:int" value=8>
<input type=radio name="newpoints:int" value=9>
<input type=radio name="newpoints:int" value=10>
</td><td>Rolling on the Floor</td></tr>
<tr><td>&nbsp;</td><td align=center><input type=submit value="Vote!"></td>
<td>&nbsp;</td></tr>
</table>
</center>
</form>

The important things: the form action is "rate", and you're passing in a
variable with values from 0 to 10 called "newpoints".

Kevin

----- Original Message -----
From: "George Donnelly" <gsd@mac.com>
To: <zope@zope.org>
Sent: Friday, May 26, 2000 3:22 AM
Subject: [Zope] km net news: missing rate and genpop?


> when i create a lm artticle store i only 5 files (plus the catalog of
> course)
>           article_footer
>           article_header
>           incoming.html
>           item_html
>           popular.html
>
> although there are a tons of files inside the km net news folder in the
> products folder i am not seeing anything else when i create the article
> store. is this right? am i missing something?
>
> zope 2.1.6 with python methods installed.
>
> tia
>
> Regards,
> GEORGE DONNELLY
> george@cyklotron.com
> http://cyklotron.com/
> The problems of the world cannot possibly be solved by skeptics or cynics
> whose horizons are limited by the obvious realities. We need men who can
> dream of things that never were. --John F. Kennedy
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>
>