[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Requirments for vote-tally script (Ammendment)




I believe this to be correctly running and has been published to cvs as:

/scripts/votetally.pl

--
Aaron Turner, Core Developer       http://vodka.linuxkb.org/~aturner/
Linux Knowledge Base Organization  http://www.linuxkb.org/
Because world domination requires quality open documentation.
aka: aturner@vicinity.com, aturner@pobox.com, ion_beam_head@ashtech.net
The difference between `Unstable' and `Usable' is only two characters: NT

On Fri, 12 May 2000, Jason Pincin wrote:

> No - you do not need to do the sql queries.  It can work one of two ways:
> 
> 1) All logic is in PHP, and you just call the php script via cmdschedule.
> 
> 2) Test logic is on the backend, rest is in php.  What this means, is your
> script just does enough to find out if the vote was succesful or not.  If
> it's succesful yopu call the php script, if not - you do nothing but
> remove the vote from the tables.
> 
> Whichever way you do it is fine.  #2 would only require you to work with
> the Vote table - nothing else.  #1 is fine too.  #2 just puts a little
> less burden on me, but not much less :) - so whichever way you would
> rather handle it, just let me know, so that I know whether to place the
> test logic in the php page or not.  There are no objects to make this
> easier - so the code is gonna be about the same either way.
> 
> If you still have questions, mail me back or I'll be on IRC all day.
> 
> Later,
> 
> Jason
> 
> 
> On Thu, May 11, 2000 at 12:10:36AM -0700, Aaron Turner wrote:
> > 
> > Ok, I read this, and re-read the PS doc.  And now I'm confused.  Just what
> > does this php script do?  Am I just supposed to call enact_vote.php3 via
> > cmdschedule.pl with the voteID's and it does the rest, or do I have to do
> > SQL queries like the PS doc talks about?
> > 
> > On Wed, 10 May 2000, Jason Pincin wrote:
> > 
> > > Primary for Aaron -
> > > 
> > > This is in addition to the spec that exists on PS.  It's pretty simple:
> > > When it is determined that what is up for vote should indeed be processed
> > > based on the votes recorded, you should simply call:
> > > 
> > > /enact_vote.php3?voteid=<voteid>
> > > 
> > > Any questions?  :)
> > > 
> > > 
> > > -- 
> > > Jason Pincin
> > > Linux Knowledge Base Project Leader (http://www.linuxkb.org/)
> > > http://www.chardros.com/
> > > 
> > 
> > --
> > Aaron Turner, Core Developer       http://vodka.linuxkb.org/~aturner/
> > Linux Knowledge Base Organization  http://www.linuxkb.org/
> > Because world domination requires quality open documentation.
> > aka: aturner@vicinity.com, aturner@pobox.com, ion_beam_head@ashtech.net
> > The difference between `Unstable' and `Usable' is only two characters: NT
> 
> -- 
> Jason Pincin
> Linux Knowledge Base Project Leader (http://www.linuxkb.org/)
> http://www.chardros.com/
> 

--
Aaron Turner, Core Developer       http://vodka.linuxkb.org/~aturner/
Linux Knowledge Base Organization  http://www.linuxkb.org/
Because world domination requires quality open documentation.
aka: aturner@vicinity.com, aturner@pobox.com, ion_beam_head@ashtech.net
The difference between `Unstable' and `Usable' is only two characters: NT