On Wed, Jul 15, 2009 at 2:37 PM, Dennis Schetinin
<chaetal@gmail.com> wrote:
I hope you fiind this instructive. If anyone finds any glaring errors please feel free to correct me.
It's a nice manual. But unfortunately I didn't find solutions for the
problems I met. Perhaps it's because I didn't explain what I want
correctly. Let me try again...
I would like to use existing Poll package, recently updated
by Lukas to work properly in current versions of Pier.
Eep! I hadn't seen those 8) heheh ahem That you were using an existing package was a bit of info missing from your original post.....
There's POPoll
class containing options (as instances of POPollOptions and described
by MAToManyRelationDescription) along with other attributes (like
deadline, uuid --- unique ID used to identify already voted users, ---
etc.). POPolls were supposed to be rendered with special kinds of
PRViewComponents using charts but it's a bit off-topic right now.
Voting itself is supported by POVoteCommand class, which is rendered as
a form described by MASingleOptionDescription with POPollOptons as
options. (I don't fully understand how it works but it obviously does:)
By the way, despite unvoted POPoll has POVoteCommand as default, it is
still rendered as with View (it's a question for Lukas, maybe?).
So, the question (still) is: how to join several POPolls in one form
providing choices several choices (of different polls) being posted
back to server by click on one button. I'm not so good in web
programming so I'm not sure if it is possible at all (should those be
nested forms or what?).
This is all Lukas and Phillipe's fault so I must defer to them :)
I also notice that I cannot make the Vote command visible to non-logged in users by using the ChangeOther command. Can someone shed some light on that?
--
Dennis Schetinin
_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki