Difference between revisions of "Jk-voting"

From AOLserver Wiki
Jump to navigation Jump to search
m (Reverted edit of 85.98.152.118, changed back to last version by Dossy)
Line 1: Line 1:
 +
Database Backed Voting Booth
  
http://www.searchyourporn.info/index1483.html
+
In theory, this is a well commented walk-through of how one might impliment a flexible voting booth in AOLserver. My purpose isn't to provide a plug-in voting booth module but rather to demonstrate one style of AOLserver programming. I don't know what the best way to present this is, so feel free to edit (after all, that's what a wiki is all about).
http://www.searchyourporn.info/index1492.html
+
 
http://www.searchyourporn.info/index1499.html
+
'''ns_register_proc GET /voting vote_subjects'''
http://www.searchyourporn.info/index1531.html
+
 
http://www.searchyourporn.info/index154.html
+
'''ns_register_proc GET /voting/new_subject new_subject'''
http://www.searchyourporn.info/index1595.html
+
 
http://www.searchyourporn.info/index162.html
+
'''ns_register_proc GET /voting/place_vote place_vote'''
http://www.searchyourporn.info/index1671.html
+
 
http://www.searchyourporn.info/index1695.html
+
'''ns_register_proc GET /voting/delete_subject delete_subject'''
http://www.searchyourporn.info/index1717.html
+
 
http://www.searchyourporn.info/index1739.html
+
'''ns_register_proc GET /voting/dovote dovote'''
http://www.searchyourporn.info/index1785.html
+
 
http://www.searchyourporn.info/index188.html
+
'''ns_register_proc GET /voting/view view_vote'''
http://www.searchyourporn.info/index1853.html
+
 
http://www.searchyourporn.info/index1855.html
+
Ok, mockery of my questionably named procedures aside here is the overview. My preference is to have each .tcl file impliment one collection of related functions.  In this case all the code specific to the Voting booth is in one file. I like to put all the ns_register_proc's right at the top so I always know where to look when correlating a URL with it's procedure.
http://www.searchyourporn.info/index1869.html
+
 
http://www.searchyourporn.info/index1923.html
+
Six URL's for a voting booth might seem excessive, let me explain the purpose of each first and then we'll get to the code itself (the code is the easy part).
http://www.searchyourporn.info/index1935.html
+
 
http://www.searchyourporn.info/index1936.html
+
''/voting'' -- this is the top-level url for the voting booth. It presents the first voting-related page I want the end users to see. Some folks might prefer /voting.html (which has some advantages, even the dumbest browsers won't have any trouble mime-typing it) but I like to only use .html extentions for static pages. Maybe that's weird.
http://www.searchyourporn.info/index2000.html
+
 
http://www.searchyourporn.info/index2041.html
+
''/voting/new_subject'' -- When a user wants to add a new subject for voting this is the URL called in the <form action= field (lets see how the wiki handles broken html...). The relevant form values are described in the comments near the "new_subject" procedure. I used to comment form values up here near the ns_register_proc but I've found that when I do that, they don't stay current (my lazyness or an inherent inefficiency problem, I'll declare the latter rather than risking the former).
http://www.searchyourporn.info/index2087.html
+
 
http://www.searchyourporn.info/index2097.html
+
''/voting/place_vote'' -- this is a badly named url/procedure. It's badly named because it's actually presenting all the possible voting choices, not placing an actual vote. A better name would be "present_choices".
http://www.searchyourporn.info/index2104.html
+
 
http://www.searchyourporn.info/index2195.html
+
''/voting/delete_subject'' -- I really like to empower users to maintain a web site by themselves.  If I leave for a month, I don't want to see piles of cruft. So the voting booth allows whichever user created a given topic to delete it. This is the <form action reciever for a user deleting one of their voting topics.
http://www.searchyourporn.info/index2208.html
+
 
http://www.searchyourporn.info/index222.html
+
''/voting/dovote'' -- actually place_vote would be better but I already mis-used that one.  This does the actual voting.  It's somewhat complex because I want users to be able to change their votes after the fact. The method I'm using to allow for such changes is highly questionable (it works, but I have every reason to believe it doesn't scale). The ability of a site to scale nicely is really underrated. Bad algorithms (like the one I'm using here) can work for a small site with fifty hits a day, but if you get pounded for some reason (slashdot-effect) you're dead in the water. Another important scaling concern isn't hits, but expandability. In this case, if there are more than a couple dozen voting subjects the page gets so cluttered and some of the DB lookups get so slow that the usability of the site is flushed.
http://www.searchyourporn.info/index2263.html
+
 
http://www.searchyourporn.info/index2293.html
+
''/voting/view'' -- finally a nice simple one. view_vote displays a quick summary of the voting results for a given subject. I tossed in a hack to allow this to also display results immediatly after someone votes with their vote highlighted. Yes, it's a hack. I call it that not because I'm risking DMCA violations but rather because it breaks the paradygm under which the module was designed.   /voting/dovote doesn't actually ns_return anything. Instead it hands off to /voting/view; a dangerous choice because a problem might be more difficult to track down (it may not be immediatly apparant if the problem is in dovote or view), resulting in a potential for extra work down the road.
http://www.searchyourporn.info/index2303.html
+
 
http://www.searchyourporn.info/index2317.html
+
'''Database Schema'''
http://www.searchyourporn.info/index2337.html
+
 
http://www.searchyourporn.info/index2375.html
+
I can hear the database experts out there groaning. There are a number of flaws (one glaring flaw) in these two tables. I like to create procedures like this because when you're coding by the seat of your pants the schema is going to get tweaked. Dropping the tables and sequences by hand is quick but recreating them is a hassle.
http://www.searchyourporn.info/index2350.html
+
 
http://www.searchyourporn.info/index2365.html
+
[[jk-voting-force_voting_exist]]
http://www.searchyourporn.info/index2412.html
+
 
http://www.searchyourporn.info/index2413.html
+
Now for the procedures that make up the voting booth. First the entire vote_subjects procedure then I'll pull it apart and explain the odd parts.
http://www.searchyourporn.info/index2438.html
+
 
http://www.searchyourporn.info/index2455.html
+
[[jk-voting-vote_subjects]]
http://www.searchyourporn.info/index2166.html
+
 
http://www.searchyourporn.info/index2493.html
+
I'll be deliriously optimistic and assume that the entire procedure make sense with the exception of these two lines:
http://www.searchyourporn.info/index250.html
+
 
http://www.searchyourporn.info/index2538.html
+
  set userrow [[user $db $conn]]
http://www.searchyourporn.info/index261.html
+
  append subject_lines [[template "voting_subject.html" $content_set]]
http://www.searchyourporn.info/index2542.html
+
 
http://www.searchyourporn.info/index2545.html
+
The first calls the "user" procedure which actually checks against a cookie to see who is logged on, validates their password and returns an ns_set of information about the user (simple enough).
http://www.searchyourporn.info/index2549.html
+
 
http://www.searchyourporn.info/index2669.html
+
The "template" procedure is outragously useful.  Here it is:
http://www.searchyourporn.info/index279.html
+
 
http://www.searchyourporn.info/index2651.html
+
[[jk-voting-template]]
http://www.searchyourporn.info/index2930.html
+
 
http://www.searchyourporn.info/index2946.html
+
That's it.  It takes a file and an ns_set of key-value pairs. It replaces every instance of %%%%key%%%% with the corresponding value from the ns_set. This lets you create your page in _any_ html editor, just put %%%%keyname%%%% in for anything that needs to be dynamic. The alternatives are ADP or hardcoding html. ADP is a pretty good solution but I like to have a stronger barrier between code and data. Actually the latest Dr Dobbs (Feb 2002) has an article about Zope's approach to this very question.
http://www.searchyourporn.info/index3041.html
+
 
http://www.searchyourporn.info/index2949.html
+
----
http://www.searchyourporn.info/index2969.html
+
 
http://www.searchyourporn.info/index3006.html
+
''Why do your own variable interpolation yourself, when you could have just used ns_adp_include of your template files, and used <% ns_set get key %> wherever appropriate, instead?  Just curious ...'' -- [[Dossy]]
http://www.searchyourporn.info/index3066.html
+
 
http://www.searchyourporn.info/index3130.html
+
----
http://www.searchyourporn.info/index3149.html
+
 
http://www.searchyourporn.info/index315.html
+
I ought to. ;)  It's possible my template procedure is a little faster (no eval), and I can give users access to editing the template files without huge potential for destruction. But I still ought to switch. [[Jason Kane]]
http://www.searchyourporn.info/index3215.html
+
 
http://www.searchyourporn.info/index3217.html
+
----
http://www.searchyourporn.info/index3225.html
+
In case that wasn't quite clear, here are the templates themselves:
http://www.searchyourporn.info/index3228.html
+
 
http://www.searchyourporn.info/index3254.html
+
[[jk-voting-voting_subject_page.html]]
http://www.searchyourporn.info/index3241.html
+
 
http://www.searchyourporn.info/index3253.html
+
[[jk-voting-voting_subject.html]]
http://www.searchyourporn.info/index3256.html
+
 
http://www.searchyourporn.info/index3260.html
+
Now that we know how to display all the voting topics, we need to actually let people ''vote''. But before they can vote, they need to know what the options are. Since this is slick-n-smooth voting booth, they also need to be able to add new voting options. While we're at it, if this user has already voting on this subject we want to re-present all of the options but default to whatever they chose last time.
http://www.searchyourporn.info/index3266.html
 
http://www.searchyourporn.info/index3272.html
 
http://www.searchyourporn.info/index3062.html
 
http://www.searchyourporn.info/index339.html
 
http://www.searchyourporn.info/index3311.html
 
http://www.searchyourporn.info/index3317.html
 
http://www.searchyourporn.info/index3336.html
 
http://www.searchyourporn.info/index335.html
 
http://www.searchyourporn.info/index3417.html
 
http://www.searchyourporn.info/index3420.html
 
http://www.searchyourporn.info/index343.html
 
http://www.searchyourporn.info/index3442.html
 
http://www.searchyourporn.info/index3538.html
 
http://www.searchyourporn.info/index3577.html
 
http://www.searchyourporn.info/index3593.html
 
http://www.searchyourporn.info/index3640.html
 
http://www.searchyourporn.info/index3667.html
 
http://www.searchyourporn.info/index3676.html
 
http://www.searchyourporn.info/index3683.html
 
http://www.searchyourporn.info/index3709.html
 
http://www.searchyourporn.info/index3716.html
 
http://www.searchyourporn.info/index3703.html
 
http://www.searchyourporn.info/index3720.html
 
http://www.searchyourporn.info/index3757.html
 
http://www.searchyourporn.info/index3791.html
 
http://www.searchyourporn.info/index3764.html
 
http://www.searchyourporn.info/index3770.html
 
http://www.searchyourporn.info/index3790.html
 
http://www.searchyourporn.info/index3859.html
 
http://www.searchyourporn.info/index3818.html
 
http://www.searchyourporn.info/index3829.html
 
http://www.searchyourporn.info/index386.html
 
http://www.searchyourporn.info/index3864.html
 
http://www.searchyourporn.info/index39.html
 
http://www.searchyourporn.info/index3915.html
 
http://www.searchyourporn.info/index393.html
 
http://www.searchyourporn.info/index3934.html
 
http://www.searchyourporn.info/index3974.html
 
http://www.searchyourporn.info/index3976.html
 
http://www.searchyourporn.info/index4000.html
 
http://www.searchyourporn.info/index4054.html
 
http://www.searchyourporn.info/index4080.html
 
http://www.searchyourporn.info/index410.html
 
http://www.searchyourporn.info/index4104.html
 
http://www.searchyourporn.info/index418.html
 
http://www.searchyourporn.info/index4190.html
 
http://www.searchyourporn.info/index4202.html
 
http://www.searchyourporn.info/index4214.html
 
http://www.searchyourporn.info/index4280.html
 
http://www.searchyourporn.info/index4295.html
 
http://www.searchyourporn.info/index436.html
 
http://www.searchyourporn.info/index440.html
 
http://www.searchyourporn.info/index4405.html
 
http://www.searchyourporn.info/index4323.html
 
http://www.searchyourporn.info/index4414.html
 
http://www.searchyourporn.info/index4445.html
 
http://www.searchyourporn.info/index4461.html
 
http://www.searchyourporn.info/index4512.html
 
http://www.searchyourporn.info/index4521.html
 
http://www.searchyourporn.info/index4562.html
 
http://www.searchyourporn.info/index4563.html
 
http://www.searchyourporn.info/index4567.html
 
http://www.searchyourporn.info/index4606.html
 
http://www.searchyourporn.info/index4668.html
 
http://www.searchyourporn.info/index470.html
 
http://www.searchyourporn.info/index4703.html
 
http://www.searchyourporn.info/index4718.html
 
http://www.searchyourporn.info/index4735.html
 
http://www.searchyourporn.info/index4743.html
 
http://www.searchyourporn.info/index4851.html
 
http://www.searchyourporn.info/index488.html
 
http://www.searchyourporn.info/index4933.html
 
http://www.searchyourporn.info/index4948.html
 
http://www.searchyourporn.info/index4965.html
 
http://www.searchyourporn.info/index4971.html
 
http://www.searchyourporn.info/index4980.html
 
http://www.searchyourporn.info/index528.html
 
http://www.searchyourporn.info/index538.html
 
http://www.searchyourporn.info/index54.html
 
http://www.searchyourporn.info/index552.html
 
http://www.searchyourporn.info/index555.html
 
http://www.searchyourporn.info/index575.html
 
http://www.searchyourporn.info/index582.html
 
http://www.searchyourporn.info/index606.html
 
http://www.searchyourporn.info/index65.html
 
http://www.searchyourporn.info/index657.html
 
http://www.searchyourporn.info/index687.html
 
http://www.searchyourporn.info/index694.html
 
http://www.searchyourporn.info/index696.html
 
http://www.searchyourporn.info/index738.html
 
http://www.searchyourporn.info/index753.html
 
http://www.searchyourporn.info/index768.html
 
http://www.searchyourporn.info/index896.html
 
http://www.searchyourporn.info/index869.html
 
http://www.searchyourporn.info/index836.html
 
http://www.searchyourporn.info/index906.html
 
http://www.searchyourporn.info/index958.html
 
http://www.searchyourporn.info/index962.html
 
http://www.searchyourporn.info/index1029.html
 
http://www.searchyourporn.info/index1071.html
 
http://www.searchyourporn.info/index1106.html
 
http://www.searchyourporn.info/index1130.html
 
http://www.searchyourporn.info/index1155.html
 
http://www.searchyourporn.info/index119.html
 
http://www.searchyourporn.info/index1191.html
 
http://www.searchyourporn.info/index1304.html
 
http://www.searchyourporn.info/index1206.html
 
http://www.searchyourporn.info/index1244.html
 
http://www.searchyourporn.info/index1272.html
 
http://www.searchyourporn.info/index1311.html
 
http://www.searchyourporn.info/index1329.html
 
http://www.searchyourporn.info/index140.html
 
http://www.searchyourporn.info/index145.html
 
http://www.searchyourporn.info/index150.html
 
http://www.searchyourporn.info/index1514.html
 
http://www.searchyourporn.info/index1352.html
 
http://www.searchyourporn.info/index1529.html
 
http://www.searchyourporn.info/index1545.html
 
http://www.searchyourporn.info/index155.html
 
http://www.searchyourporn.info/index1559.html
 
http://www.searchyourporn.info/index1565.html
 
http://www.searchyourporn.info/index1624.html
 
http://www.searchyourporn.info/index1647.html
 
http://www.searchyourporn.info/index1659.html
 
http://www.searchyourporn.info/index166.html
 
http://www.searchyourporn.info/index1704.html
 
http://www.searchyourporn.info/index1705.html
 
http://www.searchyourporn.info/index1707.html
 
http://www.searchyourporn.info/index1793.html
 
http://www.searchyourporn.info/index1762.html
 
http://www.searchyourporn.info/index1781.html
 
http://www.searchyourporn.info/index1294.html
 
http://www.searchyourporn.info/index180.html
 
http://www.searchyourporn.info/index1801.html
 
http://www.searchyourporn.info/index1822.html
 
http://www.searchyourporn.info/index1840.html
 
http://www.searchyourporn.info/index1865.html
 
http://www.searchyourporn.info/index1896.html
 
http://www.searchyourporn.info/index1900.html
 
http://www.searchyourporn.info/index1941.html
 
http://www.searchyourporn.info/index196.html
 
http://www.searchyourporn.info/index1992.html
 
http://www.searchyourporn.info/index2009.html
 
http://www.searchyourporn.info/index2014.html
 
http://www.searchyourporn.info/index2018.html
 
http://www.searchyourporn.info/index2026.html
 
http://www.searchyourporn.info/index2031.html
 
http://www.searchyourporn.info/index2042.html
 
http://www.searchyourporn.info/index205.html
 
http://www.searchyourporn.info/index2059.html
 
http://www.searchyourporn.info/index209.html
 
http://www.searchyourporn.info/index2221.html
 
http://www.searchyourporn.info/index2094.html
 
http://www.searchyourporn.info/index2147.html
 
http://www.searchyourporn.info/index2176.html
 
http://www.searchyourporn.info/index226.html
 
http://www.searchyourporn.info/index2300.html
 
http://www.searchyourporn.info/index2313.html
 
http://www.searchyourporn.info/index2419.html
 
http://www.searchyourporn.info/index2325.html
 
http://www.searchyourporn.info/index2347.html
 
http://www.searchyourporn.info/index2386.html
 
http://www.searchyourporn.info/index2434.html
 
http://www.searchyourporn.info/index2475.html
 
http://www.searchyourporn.info/index249.html
 
http://www.searchyourporn.info/index25.html
 
http://www.searchyourporn.info/index251.html
 
http://www.searchyourporn.info/index2536.html
 
http://www.searchyourporn.info/index2568.html
 
http://www.searchyourporn.info/index2570.html
 
http://www.searchyourporn.info/index2591.html
 
http://www.searchyourporn.info/index2608.html
 
http://www.searchyourporn.info/index2613.html
 
http://www.searchyourporn.info/index2623.html
 
http://www.searchyourporn.info/index2657.html
 
http://www.searchyourporn.info/index2694.html
 
http://www.searchyourporn.info/index2736.html
 
http://www.searchyourporn.info/index2762.html
 
http://www.searchyourporn.info/index277.html
 
http://www.searchyourporn.info/index2804.html
 
http://www.searchyourporn.info/index2820.html
 
http://www.searchyourporn.info/index2837.html
 
http://www.searchyourporn.info/index2447.html
 
http://www.searchyourporn.info/index286.html
 
http://www.searchyourporn.info/index2884.html
 
http://www.searchyourporn.info/index290.html
 
http://www.searchyourporn.info/index2932.html
 
http://www.searchyourporn.info/index2983.html
 
http://www.searchyourporn.info/index3003.html
 
http://www.searchyourporn.info/index3022.html
 
http://www.searchyourporn.info/index2782.html
 
http://www.searchyourporn.info/index3089.html
 
http://www.searchyourporn.info/index3110.html
 
http://www.searchyourporn.info/index3154.html
 
http://www.searchyourporn.info/index3172.html
 
http://www.searchyourporn.info/index3189.html
 
http://www.searchyourporn.info/index3239.html
 
http://www.searchyourporn.info/index3232.html
 
http://www.searchyourporn.info/index3235.html
 
http://www.searchyourporn.info/index3287.html
 
http://www.searchyourporn.info/index3343.html
 
http://www.searchyourporn.info/index3392.html
 
http://www.searchyourporn.info/index3513.html
 
http://www.searchyourporn.info/index3527.html
 
http://www.searchyourporn.info/index354.html
 
http://www.searchyourporn.info/index3541.html
 
http://www.searchyourporn.info/index3625.html
 
http://www.searchyourporn.info/index3558.html
 
http://www.searchyourporn.info/index3637.html
 
http://www.searchyourporn.info/index3583.html
 
http://www.searchyourporn.info/index3611.html
 
http://www.searchyourporn.info/index3654.html
 
http://www.searchyourporn.info/index3658.html
 
http://www.searchyourporn.info/index3721.html
 
http://www.searchyourporn.info/index3738.html
 
http://www.searchyourporn.info/index3761.html
 
http://www.searchyourporn.info/index3778.html
 
http://www.searchyourporn.info/index3826.html
 
http://www.searchyourporn.info/index3857.html
 
http://www.searchyourporn.info/index3861.html
 
http://www.searchyourporn.info/index3885.html
 
http://www.searchyourporn.info/index3912.html
 
http://www.searchyourporn.info/index3924.html
 
http://www.searchyourporn.info/index3968.html
 
http://www.searchyourporn.info/index4.html
 
http://www.searchyourporn.info/index4092.html
 
http://www.searchyourporn.info/index4109.html
 
http://www.searchyourporn.info/index407.html
 
http://www.searchyourporn.info/index4090.html
 
http://www.searchyourporn.info/index4138.html
 
http://www.searchyourporn.info/index4126.html
 
http://www.searchyourporn.info/index4128.html
 
http://www.searchyourporn.info/index4139.html
 
http://www.searchyourporn.info/index4162.html
 
http://www.searchyourporn.info/index4197.html
 
http://www.searchyourporn.info/index4200.html
 
http://www.searchyourporn.info/index4165.html
 
http://www.searchyourporn.info/index4210.html
 
http://www.searchyourporn.info/index4220.html
 
http://www.searchyourporn.info/index4455.html
 
http://www.searchyourporn.info/index4268.html
 
http://www.searchyourporn.info/index4458.html
 
http://www.searchyourporn.info/index4273.html
 
http://www.searchyourporn.info/index4290.html
 
http://www.searchyourporn.info/index4466.html
 
http://www.searchyourporn.info/index4501.html
 
http://www.searchyourporn.info/index4517.html
 
http://www.searchyourporn.info/index4545.html
 
http://www.searchyourporn.info/index4637.html
 
http://www.searchyourporn.info/index4555.html
 
http://www.searchyourporn.info/index4595.html
 
http://www.searchyourporn.info/index460.html
 
http://www.searchyourporn.info/index4509.html
 
http://www.searchyourporn.info/index4671.html
 
http://www.searchyourporn.info/index4753.html
 
http://www.searchyourporn.info/index4647.html
 
http://www.searchyourporn.info/index4650.html
 
http://www.searchyourporn.info/index4660.html
 
http://www.searchyourporn.info/index4777.html
 
http://www.searchyourporn.info/index478.html
 
http://www.searchyourporn.info/index4794.html
 
http://www.searchyourporn.info/index4807.html
 
http://www.searchyourporn.info/index4811.html
 
http://www.searchyourporn.info/index4857.html
 
http://www.searchyourporn.info/index4860.html
 
http://www.searchyourporn.info/index4866.html
 
http://www.searchyourporn.info/index4871.html
 
http://www.searchyourporn.info/index4915.html
 
http://www.searchyourporn.info/index4925.html
 
http://www.searchyourporn.info/index4954.html
 
http://www.searchyourporn.info/index505.html
 
http://www.searchyourporn.info/index533.html
 
http://www.searchyourporn.info/index568.html
 
http://www.searchyourporn.info/index585.html
 
http://www.searchyourporn.info/index597.html
 
http://www.searchyourporn.info/index642.html
 
http://www.searchyourporn.info/index678.html
 
http://www.searchyourporn.info/index683.html
 
http://www.searchyourporn.info/index69.html
 
http://www.searchyourporn.info/index698.html
 
http://www.searchyourporn.info/index754.html
 
http://www.searchyourporn.info/index819.html
 
http://www.searchyourporn.info/index704.html
 
http://www.searchyourporn.info/index857.html
 
http://www.searchyourporn.info/index866.html
 
http://www.searchyourporn.info/index91.html
 
http://www.searchyourporn.info/index93.html
 
http://www.searchyourporn.info/index938.html
 
http://www.searchyourporn.info/index944.html
 
http://www.searchyourporn.info/index973.html
 
http://www.searchyourporn.info/index1041.html
 
http://www.searchyourporn.info/index1068.html
 
http://www.searchyourporn.info/index120.html
 
http://www.searchyourporn.info/index118.html
 
http://www.searchyourporn.info/index1198.html
 
http://www.searchyourporn.info/index1201.html
 
http://www.searchyourporn.info/index1250.html
 
http://www.searchyourporn.info/index1253.html
 
http://www.searchyourporn.info/index1256.html
 
http://www.searchyourporn.info/index1267.html
 
http://www.searchyourporn.info/index1285.html
 
http://www.searchyourporn.info/index1347.html
 
http://www.searchyourporn.info/index1353.html
 
http://www.searchyourporn.info/index1357.html
 
http://www.searchyourporn.info/index1388.html
 
http://www.searchyourporn.info/index1443.html
 
http://www.searchyourporn.info/index1399.html
 
http://www.searchyourporn.info/index1410.html
 
http://www.searchyourporn.info/index1430.html
 
http://www.searchyourporn.info/index1572.html
 
http://www.searchyourporn.info/index1463.html
 
http://www.searchyourporn.info/index1484.html
 
http://www.searchyourporn.info/index152.html
 
http://www.searchyourporn.info/index1593.html
 
http://www.searchyourporn.info/index1642.html
 
http://www.searchyourporn.info/index1676.html
 
http://www.searchyourporn.info/index17.html
 
http://www.searchyourporn.info/index1786.html
 
http://www.searchyourporn.info/index1804.html
 
http://www.searchyourporn.info/index183.html
 
http://www.searchyourporn.info/index1857.html
 
http://www.searchyourporn.info/index1867.html
 
http://www.searchyourporn.info/index19.html
 
http://www.searchyourporn.info/index1924.html
 
http://www.searchyourporn.info/index1948.html
 
http://www.searchyourporn.info/index1982.html
 
http://www.searchyourporn.info/index1989.html
 
http://www.searchyourporn.info/index1998.html
 
http://www.searchyourporn.info/index2025.html
 
http://www.searchyourporn.info/index2028.html
 
http://www.searchyourporn.info/index2033.html
 
http://www.searchyourporn.info/index2050.html
 
http://www.searchyourporn.info/index2073.html
 
http://www.searchyourporn.info/index208.html
 
http://www.searchyourporn.info/index2117.html
 
http://www.searchyourporn.info/index2148.html
 
http://www.searchyourporn.info/index215.html
 
http://www.searchyourporn.info/index2185.html
 
http://www.searchyourporn.info/index220.html
 
http://www.searchyourporn.info/index2220.html
 
http://www.searchyourporn.info/index2222.html
 
http://www.searchyourporn.info/index2235.html
 
http://www.searchyourporn.info/index2296.html
 
http://www.searchyourporn.info/index237.html
 
http://www.searchyourporn.info/index2426.html
 
http://www.searchyourporn.info/index2484.html
 
http://www.searchyourporn.info/index2485.html
 
http://www.searchyourporn.info/index2489.html
 
http://www.searchyourporn.info/index2507.html
 
http://www.searchyourporn.info/index253.html
 
http://www.searchyourporn.info/index2562.html
 
http://www.searchyourporn.info/index2605.html
 
http://www.searchyourporn.info/index2632.html
 
http://www.searchyourporn.info/index2618.html
 
http://www.searchyourporn.info/index2620.html
 
http://www.searchyourporn.info/index2668.html
 
http://www.searchyourporn.info/index2673.html
 
http://www.searchyourporn.info/index2699.html
 
http://www.searchyourporn.info/index27.html
 
http://www.searchyourporn.info/index2707.html
 
http://www.searchyourporn.info/index271.html
 
http://www.searchyourporn.info/index31.html
 
http://www.searchyourporn.info/index2796.html
 
http://www.searchyourporn.info/index2826.html
 
http://www.searchyourporn.info/index2843.html
 
http://www.searchyourporn.info/index3020.html
 
http://www.searchyourporn.info/index2851.html
 
http://www.searchyourporn.info/index2911.html
 
http://www.searchyourporn.info/index3001.html
 
http://www.searchyourporn.info/index3028.html
 
http://www.searchyourporn.info/index3034.html
 
http://www.searchyourporn.info/index3043.html
 
http://www.searchyourporn.info/index3079.html
 
http://www.searchyourporn.info/index3214.html
 
http://www.searchyourporn.info/index3109.html
 
http://www.searchyourporn.info/index3166.html
 
http://www.searchyourporn.info/index3171.html
 
http://www.searchyourporn.info/index3231.html
 
http://www.searchyourporn.info/index3268.html
 
http://www.searchyourporn.info/index3218.html
 
http://www.searchyourporn.info/index322.html
 
http://www.searchyourporn.info/index3281.html
 
http://www.searchyourporn.info/index3319.html
 
http://www.searchyourporn.info/index3333.html
 
http://www.searchyourporn.info/index3346.html
 
http://www.searchyourporn.info/index3398.html
 
http://www.searchyourporn.info/index3462.html
 
http://www.searchyourporn.info/index3407.html
 
http://www.searchyourporn.info/index3441.html
 
http://www.searchyourporn.info/index345.html
 
http://www.searchyourporn.info/index3491.html
 
http://www.searchyourporn.info/index3469.html
 
http://www.searchyourporn.info/index3483.html
 
http://www.searchyourporn.info/index3503.html
 
http://www.searchyourporn.info/index3546.html
 
http://www.searchyourporn.info/index370.html
 
http://www.searchyourporn.info/index3752.html
 
http://www.searchyourporn.info/index3717.html
 
http://www.searchyourporn.info/index3739.html
 
http://www.searchyourporn.info/index3866.html
 
http://www.searchyourporn.info/index3836.html
 
http://www.searchyourporn.info/index3846.html
 
http://www.searchyourporn.info/index3867.html
 
http://www.searchyourporn.info/index3898.html
 
http://www.searchyourporn.info/index3908.html
 
http://www.searchyourporn.info/index3921.html
 
http://www.searchyourporn.info/index377.html
 
http://www.searchyourporn.info/index3955.html
 
http://www.searchyourporn.info/index3967.html
 
http://www.searchyourporn.info/index3969.html
 
http://www.searchyourporn.info/index4028.html
 
http://www.searchyourporn.info/index4051.html
 
http://www.searchyourporn.info/index4071.html
 
http://www.searchyourporn.info/index4099.html
 
http://www.searchyourporn.info/index4157.html
 
http://www.searchyourporn.info/index4159.html
 
http://www.searchyourporn.info/index4171.html
 
http://www.searchyourporn.info/index4174.html
 
http://www.searchyourporn.info/index4219.html
 
http://www.searchyourporn.info/index4224.html
 
http://www.searchyourporn.info/index4239.html
 
http://www.searchyourporn.info/index4260.html
 
http://www.searchyourporn.info/index4274.html
 
http://www.searchyourporn.info/index4294.html
 
http://www.searchyourporn.info/index4304.html
 
http://www.searchyourporn.info/index4315.html
 
http://www.searchyourporn.info/index4320.html
 
http://www.searchyourporn.info/index4486.html
 
http://www.searchyourporn.info/index4491.html
 
http://www.searchyourporn.info/index3949.html
 
http://www.searchyourporn.info/index450.html
 
http://www.searchyourporn.info/index4506.html
 
http://www.searchyourporn.info/index4534.html
 
http://www.searchyourporn.info/index4579.html
 
http://www.searchyourporn.info/index4582.html
 
http://www.searchyourporn.info/index4584.html
 
http://www.searchyourporn.info/index4638.html
 
http://www.searchyourporn.info/index4511.html
 
http://www.searchyourporn.info/index4665.html
 
http://www.searchyourporn.info/index4698.html
 
http://www.searchyourporn.info/index4744.html
 
http://www.searchyourporn.info/index4766.html
 
http://www.searchyourporn.info/index482.html
 
http://www.searchyourporn.info/index4829.html
 
http://www.searchyourporn.info/index4836.html
 
http://www.searchyourporn.info/index4853.html
 
http://www.searchyourporn.info/index474.html
 
http://www.searchyourporn.info/index4861.html
 
http://www.searchyourporn.info/index4869.html
 
http://www.searchyourporn.info/index4874.html
 
http://www.searchyourporn.info/index4898.html
 
http://www.searchyourporn.info/index4906.html
 
http://www.searchyourporn.info/index4931.html
 
http://www.searchyourporn.info/index497.html
 
http://www.searchyourporn.info/index4970.html
 
http://www.searchyourporn.info/index4976.html
 
http://www.searchyourporn.info/index4792.html
 
http://www.searchyourporn.info/index4985.html
 
http://www.searchyourporn.info/index507.html
 
http://www.searchyourporn.info/index513.html
 
http://www.searchyourporn.info/index542.html
 
http://www.searchyourporn.info/index591.html
 
http://www.searchyourporn.info/index625.html
 
http://www.searchyourporn.info/index4817.html
 
http://www.searchyourporn.info/index648.html
 
http://www.searchyourporn.info/index78.html
 
http://www.searchyourporn.info/index673.html
 
http://www.searchyourporn.info/index702.html
 
http://www.searchyourporn.info/index833.html
 
http://www.searchyourporn.info/index798.html
 
http://www.searchyourporn.info/index802.html
 
http://www.searchyourporn.info/index844.html
 
http://www.searchyourporn.info/index85.html
 
http://www.searchyourporn.info/index890.html
 
http://www.searchyourporn.info/index915.html
 
http://www.searchyourporn.info/index920.html
 
http://www.searchyourporn.info/index927.html
 
http://www.searchyourporn.info/index928.html
 
http://www.searchyourporn.info/index942.html
 
http://www.searchyourporn.info/index951.html
 
http://www.searchyourporn.info/index961.html
 
http://www.searchyourporn.info/index985.html
 
http://www.searchyourporn.info/index100.html
 
http://www.searchyourporn.info/index1048.html
 
http://www.searchyourporn.info/index1020.html
 
http://www.searchyourporn.info/index1042.html
 
http://www.searchyourporn.info/index1043.html
 
http://www.searchyourporn.info/index1065.html
 
http://www.searchyourporn.info/index1053.html
 
http://www.searchyourporn.info/index1064.html
 
http://www.searchyourporn.info/index1145.html
 
http://www.searchyourporn.info/index1160.html
 
http://www.searchyourporn.info/index117.html
 
http://www.searchyourporn.info/index1203.html
 
http://www.searchyourporn.info/index1255.html
 
http://www.searchyourporn.info/index1219.html
 
http://www.searchyourporn.info/index1246.html
 
http://www.searchyourporn.info/index1254.html
 
http://www.searchyourporn.info/index131.html
 
http://www.searchyourporn.info/index1334.html
 
http://www.searchyourporn.info/index1381.html
 
http://www.searchyourporn.info/index1415.html
 
http://www.searchyourporn.info/index1497.html
 
http://www.searchyourporn.info/index1512.html
 
http://www.searchyourporn.info/index1498.html
 
http://www.searchyourporn.info/index1509.html
 
http://www.searchyourporn.info/index1550.html
 
http://www.searchyourporn.info/index159.html
 
http://www.searchyourporn.info/index1602.html
 
http://www.searchyourporn.info/index1603.html
 
http://www.searchyourporn.info/index1657.html
 
http://www.searchyourporn.info/index1112.html
 
http://www.searchyourporn.info/index1680.html
 
http://www.searchyourporn.info/index1753.html
 
http://www.searchyourporn.info/index1769.html
 
http://www.searchyourporn.info/index1813.html
 
http://www.searchyourporn.info/index1814.html
 
http://www.searchyourporn.info/index1845.html
 
http://www.searchyourporn.info/index1858.html
 
http://www.searchyourporn.info/index2063.html
 
http://www.searchyourporn.info/index1860.html
 
http://www.searchyourporn.info/index1955.html
 
http://www.searchyourporn.info/index2046.html
 
http://www.searchyourporn.info/index2085.html
 
http://www.searchyourporn.info/index2115.html
 
http://www.searchyourporn.info/index2141.html
 
http://www.searchyourporn.info/index2179.html
 
http://www.searchyourporn.info/index2183.html
 
http://www.searchyourporn.info/index2258.html
 
http://www.searchyourporn.info/index2271.html
 
http://www.searchyourporn.info/index228.html
 
http://www.searchyourporn.info/index229.html
 
http://www.searchyourporn.info/index2299.html
 
http://www.searchyourporn.info/index2308.html
 
http://www.searchyourporn.info/index2348.html
 
http://www.searchyourporn.info/index2349.html
 
http://www.searchyourporn.info/index2341.html
 
http://www.searchyourporn.info/index2342.html
 
http://www.searchyourporn.info/index2345.html
 
http://www.searchyourporn.info/index236.html
 
http://www.searchyourporn.info/index2369.html
 
http://www.searchyourporn.info/index2378.html
 
http://www.searchyourporn.info/index2407.html
 
http://www.searchyourporn.info/index2460.html
 
http://www.searchyourporn.info/index2490.html
 
http://www.searchyourporn.info/index2521.html
 
http://www.searchyourporn.info/index2660.html
 
http://www.searchyourporn.info/index2664.html
 
http://www.searchyourporn.info/index2709.html
 
http://www.searchyourporn.info/index2753.html
 
http://www.searchyourporn.info/index2739.html
 
http://www.searchyourporn.info/index2756.html
 
http://www.searchyourporn.info/index2761.html
 
http://www.searchyourporn.info/index2777.html
 
http://www.searchyourporn.info/index2792.html
 
http://www.searchyourporn.info/index2813.html
 
http://www.searchyourporn.info/index2815.html
 
http://www.searchyourporn.info/index2834.html
 
http://www.searchyourporn.info/index2842.html
 
http://www.searchyourporn.info/index2855.html
 
http://www.searchyourporn.info/index2886.html
 
http://www.searchyourporn.info/index2903.html
 
http://www.searchyourporn.info/index2929.html
 
http://www.searchyourporn.info/index2935.html
 
http://www.searchyourporn.info/index2976.html
 
http://www.searchyourporn.info/index2998.html
 
http://www.searchyourporn.info/index3.html
 
http://www.searchyourporn.info/index3013.html
 
http://www.searchyourporn.info/index3019.html
 
http://www.searchyourporn.info/index3036.html
 
http://www.searchyourporn.info/index3055.html
 
http://www.searchyourporn.info/index3118.html
 
http://www.searchyourporn.info/index3165.html
 
http://www.searchyourporn.info/index3190.html
 
http://www.searchyourporn.info/index3270.html
 
http://www.searchyourporn.info/index3302.html
 
http://www.searchyourporn.info/index3315.html
 
http://www.searchyourporn.info/index3348.html
 
http://www.searchyourporn.info/index3354.html
 
http://www.searchyourporn.info/index3376.html
 
http://www.searchyourporn.info/index3431.html
 
http://www.searchyourporn.info/index338.html
 
http://www.searchyourporn.info/index3415.html
 
http://www.searchyourporn.info/index3447.html
 
http://www.searchyourporn.info/index3450.html
 
http://www.searchyourporn.info/index3458.html
 
http://www.searchyourporn.info/index3477.html
 
http://www.searchyourporn.info/index3492.html
 
http://www.searchyourporn.info/index3506.html
 
http://www.searchyourporn.info/index3515.html
 
http://www.searchyourporn.info/index3540.html
 
http://www.searchyourporn.info/index3551.html
 
http://www.searchyourporn.info/index3609.html
 
http://www.searchyourporn.info/index3623.html
 
http://www.searchyourporn.info/index3644.html
 
http://www.searchyourporn.info/index3646.html
 
http://www.searchyourporn.info/index3649.html
 
http://www.searchyourporn.info/index3664.html
 
http://www.searchyourporn.info/index3680.html
 
http://www.searchyourporn.info/index3704.html
 
http://www.searchyourporn.info/index3724.html
 
http://www.searchyourporn.info/index3734.html
 
http://www.searchyourporn.info/index3735.html
 
http://www.searchyourporn.info/index3767.html
 
http://www.searchyourporn.info/index3811.html
 
http://www.searchyourporn.info/index3820.html
 
http://www.searchyourporn.info/index3781.html
 
http://www.searchyourporn.info/index3803.html
 
http://www.searchyourporn.info/index3848.html
 
http://www.searchyourporn.info/index3854.html
 
http://www.searchyourporn.info/index389.html
 
http://www.searchyourporn.info/index3938.html
 
http://www.searchyourporn.info/index4045.html
 
http://www.searchyourporn.info/index3950.html
 
http://www.searchyourporn.info/index4056.html
 
http://www.searchyourporn.info/index4018.html
 
http://www.searchyourporn.info/index4035.html
 
http://www.searchyourporn.info/index4091.html
 
http://www.searchyourporn.info/index4151.html
 
http://www.searchyourporn.info/index4189.html
 
http://www.searchyourporn.info/index423.html
 
http://www.searchyourporn.info/index4236.html
 
http://www.searchyourporn.info/index4257.html
 
http://www.searchyourporn.info/index4292.html
 
http://www.searchyourporn.info/index4299.html
 
http://www.searchyourporn.info/index432.html
 
http://www.searchyourporn.info/index4301.html
 
http://www.searchyourporn.info/index4319.html
 
http://www.searchyourporn.info/index4330.html
 
http://www.searchyourporn.info/index4347.html
 
http://www.searchyourporn.info/index4359.html
 
http://www.searchyourporn.info/index438.html
 
http://www.searchyourporn.info/index439.html
 
http://www.searchyourporn.info/index4429.html
 
http://www.searchyourporn.info/index4435.html
 
http://www.searchyourporn.info/index4443.html
 
http://www.searchyourporn.info/index4452.html
 
http://www.searchyourporn.info/index4462.html
 
http://www.searchyourporn.info/index453.html
 
http://www.searchyourporn.info/index456.html
 
http://www.searchyourporn.info/index4760.html
 
http://www.searchyourporn.info/index4789.html
 
http://www.searchyourporn.info/index4583.html
 
http://www.searchyourporn.info/index4621.html
 
http://www.searchyourporn.info/index4796.html
 
http://www.searchyourporn.info/index4810.html
 
http://www.searchyourporn.info/index4852.html
 
http://www.searchyourporn.info/index4905.html
 
http://www.searchyourporn.info/index4968.html
 
http://www.searchyourporn.info/index4878.html
 
http://www.searchyourporn.info/index4892.html
 
http://www.searchyourporn.info/index4986.html
 
http://www.searchyourporn.info/index4991.html
 
http://www.searchyourporn.info/index53.html
 
http://www.searchyourporn.info/index565.html
 
http://www.searchyourporn.info/index610.html
 
http://www.searchyourporn.info/index651.html
 
http://www.searchyourporn.info/index726.html
 
http://www.searchyourporn.info/index659.html
 
http://www.searchyourporn.info/index668.html
 
http://www.searchyourporn.info/index672.html
 
http://www.searchyourporn.info/index705.html
 
http://www.searchyourporn.info/index762.html
 
http://www.searchyourporn.info/index769.html
 
http://www.searchyourporn.info/index788.html
 
http://www.searchyourporn.info/index805.html
 
http://www.searchyourporn.info/index807.html
 
http://www.searchyourporn.info/index809.html
 
http://www.searchyourporn.info/index818.html
 
http://www.searchyourporn.info/index82.html
 
http://www.searchyourporn.info/index838.html
 
http://www.searchyourporn.info/index87.html
 
http://www.searchyourporn.info/index934.html
 
http://www.searchyourporn.info/index963.html
 
http://www.searchyourporn.info/index97.html
 
http://www.searchyourporn.info/index1012.html
 
http://www.searchyourporn.info/index1025.html
 
http://www.searchyourporn.info/index1037.html
 
http://www.searchyourporn.info/index106.html
 
http://www.searchyourporn.info/index107.html
 
http://www.searchyourporn.info/index1080.html
 
http://www.searchyourporn.info/index1101.html
 
http://www.searchyourporn.info/index1116.html
 
http://www.searchyourporn.info/index1139.html
 
http://www.searchyourporn.info/index1140.html
 
http://www.searchyourporn.info/index1263.html
 
http://www.searchyourporn.info/index1293.html
 
http://www.searchyourporn.info/index1210.html
 
http://www.searchyourporn.info/index1221.html
 
http://www.searchyourporn.info/index1318.html
 
http://www.searchyourporn.info/index1391.html
 
http://www.searchyourporn.info/index1402.html
 
http://www.searchyourporn.info/index1417.html
 
http://www.searchyourporn.info/index1419.html
 
http://www.searchyourporn.info/index1427.html
 
http://www.searchyourporn.info/index1428.html
 
http://www.searchyourporn.info/index1544.html
 
http://www.searchyourporn.info/index1574.html
 
http://www.searchyourporn.info/index1588.html
 
http://www.searchyourporn.info/index1688.html
 
http://www.searchyourporn.info/index1607.html
 
http://www.searchyourporn.info/index1678.html
 
http://www.searchyourporn.info/index1682.html
 
http://www.searchyourporn.info/index1721.html
 
http://www.searchyourporn.info/index1754.html
 
http://www.searchyourporn.info/index1773.html
 
http://www.searchyourporn.info/index1805.html
 
http://www.searchyourporn.info/index181.html
 
http://www.searchyourporn.info/index1827.html
 
http://www.searchyourporn.info/index1848.html
 
http://www.searchyourporn.info/index1868.html
 
http://www.searchyourporn.info/index1913.html
 
http://www.searchyourporn.info/index1882.html
 
http://www.searchyourporn.info/index1899.html
 
http://www.searchyourporn.info/index1877.html
 
http://www.searchyourporn.info/index1918.html
 
http://www.searchyourporn.info/index1974.html
 
http://www.searchyourporn.info/index1980.html
 
http://www.searchyourporn.info/index1997.html
 
http://www.searchyourporn.info/index2019.html
 
http://www.searchyourporn.info/index2135.html
 
http://www.searchyourporn.info/index2001.html
 
http://www.searchyourporn.info/index2002.html
 
http://www.searchyourporn.info/index201.html
 
http://www.searchyourporn.info/index2167.html
 
http://www.searchyourporn.info/index2190.html
 
http://www.searchyourporn.info/index2196.html
 
http://www.searchyourporn.info/index2218.html
 
http://www.searchyourporn.info/index2228.html
 
http://www.searchyourporn.info/index224.html
 
http://www.searchyourporn.info/index2252.html
 
http://www.searchyourporn.info/index2269.html
 
http://www.searchyourporn.info/index2425.html
 
http://www.searchyourporn.info/index2330.html
 
http://www.searchyourporn.info/index2391.html
 
http://www.searchyourporn.info/index2392.html
 
http://www.searchyourporn.info/index2456.html
 
http://www.searchyourporn.info/index2461.html
 
http://www.searchyourporn.info/index2497.html
 
http://www.searchyourporn.info/index2499.html
 
http://www.searchyourporn.info/index2502.html
 
http://www.searchyourporn.info/index2503.html
 
http://www.searchyourporn.info/index2601.html
 
http://www.searchyourporn.info/index2644.html
 
http://www.searchyourporn.info/index2649.html
 
http://www.searchyourporn.info/index2727.html
 
http://www.searchyourporn.info/index2730.html
 
http://www.searchyourporn.info/index2764.html
 
http://www.searchyourporn.info/index2784.html
 
http://www.searchyourporn.info/index2806.html
 
http://www.searchyourporn.info/index2822.html
 
http://www.searchyourporn.info/index285.html
 
http://www.searchyourporn.info/index2863.html
 
http://www.searchyourporn.info/index2868.html
 
http://www.searchyourporn.info/index2919.html
 
http://www.searchyourporn.info/index2924.html
 
http://www.searchyourporn.info/index3016.html
 
http://www.searchyourporn.info/index3072.html
 
http://www.searchyourporn.info/index3074.html
 
http://www.searchyourporn.info/index3091.html
 
http://www.searchyourporn.info/index3103.html
 
http://www.searchyourporn.info/index3111.html
 
http://www.searchyourporn.info/index313.html
 
http://www.searchyourporn.info/index314.html
 
http://www.searchyourporn.info/index3143.html
 
http://www.searchyourporn.info/index3211.html
 
http://www.searchyourporn.info/index3237.html
 
http://www.searchyourporn.info/index3245.html
 
http://www.searchyourporn.info/index328.html
 
http://www.searchyourporn.info/index3297.html
 
http://www.searchyourporn.info/index334.html
 
http://www.searchyourporn.info/index3432.html
 
http://www.searchyourporn.info/index344.html
 
http://www.searchyourporn.info/index349.html
 
http://www.searchyourporn.info/index3497.html
 
http://www.searchyourporn.info/index351.html
 
http://www.searchyourporn.info/index3610.html
 
http://www.searchyourporn.info/index362.html
 
http://www.searchyourporn.info/index3622.html
 
http://www.searchyourporn.info/index3802.html
 
http://www.searchyourporn.info/index3685.html
 
http://www.searchyourporn.info/index3698.html
 
http://www.searchyourporn.info/index3706.html
 
http://www.searchyourporn.info/index3714.html
 
http://www.searchyourporn.info/index3838.html
 
http://www.searchyourporn.info/index3940.html
 
http://www.searchyourporn.info/index3839.html
 
http://www.searchyourporn.info/index395.html
 
http://www.searchyourporn.info/index3847.html
 
http://www.searchyourporn.info/index3920.html
 
http://www.searchyourporn.info/index396.html
 
http://www.searchyourporn.info/index3963.html
 
http://www.searchyourporn.info/index398.html
 
http://www.searchyourporn.info/index399.html
 
http://www.searchyourporn.info/index3994.html
 
http://www.searchyourporn.info/index3998.html
 
http://www.searchyourporn.info/index4024.html
 
http://www.searchyourporn.info/index4027.html
 
http://www.searchyourporn.info/index4053.html
 
http://www.searchyourporn.info/index406.html
 
http://www.searchyourporn.info/index4118.html
 
http://www.searchyourporn.info/index4089.html
 
http://www.searchyourporn.info/index4100.html
 
http://www.searchyourporn.info/index4114.html
 
http://www.searchyourporn.info/index4121.html
 
http://www.searchyourporn.info/index4178.html
 
http://www.searchyourporn.info/index4235.html
 
http://www.searchyourporn.info/index4264.html
 
http://www.searchyourporn.info/index4279.html
 
http://www.searchyourporn.info/index4286.html
 
http://www.searchyourporn.info/index4334.html
 
http://www.searchyourporn.info/index4431.html
 
http://www.searchyourporn.info/index4370.html
 
http://www.searchyourporn.info/index4374.html
 
http://www.searchyourporn.info/index4393.html
 
http://www.searchyourporn.info/index4451.html
 
http://www.searchyourporn.info/index4453.html
 
http://www.searchyourporn.info/index449.html
 
http://www.searchyourporn.info/index4514.html
 
http://www.searchyourporn.info/index4530.html
 
http://www.searchyourporn.info/index4546.html
 
http://www.searchyourporn.info/index4570.html
 
http://www.searchyourporn.info/index4614.html
 
http://www.searchyourporn.info/index4631.html
 
http://www.searchyourporn.info/index4692.html
 
http://www.searchyourporn.info/index4708.html
 
http://www.searchyourporn.info/index4731.html
 
http://www.searchyourporn.info/index4758.html
 
http://www.searchyourporn.info/index4797.html
 
http://www.searchyourporn.info/index4814.html
 
http://www.searchyourporn.info/index4876.html
 
http://www.searchyourporn.info/index4888.html
 
http://www.searchyourporn.info/index4895.html
 
http://www.searchyourporn.info/index4907.html
 
http://www.searchyourporn.info/index4964.html
 
http://www.searchyourporn.info/index4969.html
 
http://www.searchyourporn.info/index4983.html
 
http://www.searchyourporn.info/index4989.html
 
http://www.searchyourporn.info/index516.html
 
http://www.searchyourporn.info/index4998.html
 
http://www.searchyourporn.info/index50.html
 
http://www.searchyourporn.info/index515.html
 
http://www.searchyourporn.info/index540.html
 
http://www.searchyourporn.info/index546.html
 
http://www.searchyourporn.info/index55.html
 
http://www.searchyourporn.info/index559.html
 
http://www.searchyourporn.info/index560.html
 
http://www.searchyourporn.info/index641.html
 
http://www.searchyourporn.info/index581.html
 
http://www.searchyourporn.info/index649.html
 
http://www.searchyourporn.info/index612.html
 
http://www.searchyourporn.info/index631.html
 
http://www.searchyourporn.info/index720.html
 
http://www.searchyourporn.info/index670.html
 
http://www.searchyourporn.info/index677.html
 
http://www.searchyourporn.info/index747.html
 
http://www.searchyourporn.info/index766.html
 
http://www.searchyourporn.info/index796.html
 
http://www.searchyourporn.info/index827.html
 
http://www.searchyourporn.info/index851.html
 
http://www.searchyourporn.info/index854.html
 
http://www.searchyourporn.info/index882.html
 
http://www.searchyourporn.info/index950.html
 
http://www.searchyourporn.info/index960.html
 
http://www.searchyourporn.info/index98.html
 
http://www.searchyourporn.info/index988.html
 
http://www.searchyourporn.info/index989.html
 
http://www.searchyourporn.info/indexgo.html
 
http://www.searchyourporn.info/counter.html
 
http://www.searchyourporn.info/default.htm
 
http://www.searchyourporn.info/map.c.html
 
http://www.searchyourporn.info/map.b.html
 
http://www.searchyourporn.info/map.a.html
 
http://www.searchyourporn.info/map.g.html
 
http://www.searchyourporn.info/map.e.html
 
http://www.searchyourporn.info/map.f.html
 
http://www.searchyourporn.info/map.d.html
 
http://www.searchyourporn.info/map.j.html
 
http://www.searchyourporn.info/map.h.html
 
http://www.searchyourporn.info/map.i.html
 
http://www.searchyourporn.info/map.m.html
 
http://www.searchyourporn.info/map.k.html
 
http://www.searchyourporn.info/map.n.html
 
http://www.searchyourporn.info/map.l.html
 
http://www.searchyourporn.info/map.s.html
 
http://www.searchyourporn.info/map.p.html
 
http://www.searchyourporn.info/map.o.html
 
http://www.searchyourporn.info/map.q.html
 
http://www.searchyourporn.info/map.r.html
 
http://www.searchyourporn.info/map.v.html
 
http://www.searchyourporn.info/map.t.html
 
http://www.searchyourporn.info/map.x.html
 
http://www.searchyourporn.info/map.u.html
 
http://www.searchyourporn.info/map.w.html
 
http://www.searchyourporn.info/map.z.html
 
http://www.searchyourporn.info/map.y.html
 
http://www.searchyourporn.info/index104.html
 
http://www.searchyourporn.info/index1038.html
 
http://www.searchyourporn.info/index1047.html
 
http://www.searchyourporn.info/index115.html
 
http://www.searchyourporn.info/index1132.html
 
http://www.searchyourporn.info/index1162.html
 
http://www.searchyourporn.info/index1190.html
 
http://www.searchyourporn.info/index1171.html
 
http://www.searchyourporn.info/index1192.html
 
http://www.searchyourporn.info/index1208.html
 
http://www.searchyourporn.info/index123.html
 
http://www.searchyourporn.info/index1069.html
 
http://www.searchyourporn.info/index1273.html
 
http://www.searchyourporn.info/index1264.html
 
http://www.searchyourporn.info/index1379.html
 
http://www.searchyourporn.info/index1280.html
 
http://www.searchyourporn.info/index1287.html
 
http://www.searchyourporn.info/index1316.html
 
http://www.searchyourporn.info/index1389.html
 
http://www.searchyourporn.info/index1538.html
 
http://www.searchyourporn.info/index1485.html
 
http://www.searchyourporn.info/index1566.html
 
http://www.searchyourporn.info/index1513.html
 
http://www.searchyourporn.info/index1703.html
 
http://www.searchyourporn.info/index1686.html
 
http://www.searchyourporn.info/index1100.html
 
http://www.searchyourporn.info/index1742.html
 
http://www.searchyourporn.info/index1756.html
 
http://www.searchyourporn.info/index1800.html
 
http://www.searchyourporn.info/index1743.html
 
http://www.searchyourporn.info/index178.html
 
http://www.searchyourporn.info/index1788.html
 
http://www.searchyourporn.info/index1792.html
 
http://www.searchyourporn.info/index1892.html
 
http://www.searchyourporn.info/index2017.html
 
http://www.searchyourporn.info/index1831.html
 
http://www.searchyourporn.info/index1985.html
 
http://www.searchyourporn.info/index2.html
 
http://www.searchyourporn.info/index2004.html
 
http://www.searchyourporn.info/index2066.html
 
http://www.searchyourporn.info/index204.html
 
http://www.searchyourporn.info/index2067.html
 
http://www.searchyourporn.info/index2186.html
 
http://www.searchyourporn.info/index223.html
 
http://www.searchyourporn.info/index2096.html
 
http://www.searchyourporn.info/index2119.html
 
http://www.searchyourporn.info/index2188.html
 
http://www.searchyourporn.info/index2223.html
 
http://www.searchyourporn.info/index2305.html
 
http://www.searchyourporn.info/index2358.html
 
http://www.searchyourporn.info/index23.html
 

Revision as of 20:40, 9 March 2006

Database Backed Voting Booth

In theory, this is a well commented walk-through of how one might impliment a flexible voting booth in AOLserver. My purpose isn't to provide a plug-in voting booth module but rather to demonstrate one style of AOLserver programming. I don't know what the best way to present this is, so feel free to edit (after all, that's what a wiki is all about).

ns_register_proc GET /voting vote_subjects

ns_register_proc GET /voting/new_subject new_subject

ns_register_proc GET /voting/place_vote place_vote

ns_register_proc GET /voting/delete_subject delete_subject

ns_register_proc GET /voting/dovote dovote

ns_register_proc GET /voting/view view_vote

Ok, mockery of my questionably named procedures aside here is the overview. My preference is to have each .tcl file impliment one collection of related functions. In this case all the code specific to the Voting booth is in one file. I like to put all the ns_register_proc's right at the top so I always know where to look when correlating a URL with it's procedure.

Six URL's for a voting booth might seem excessive, let me explain the purpose of each first and then we'll get to the code itself (the code is the easy part).

/voting -- this is the top-level url for the voting booth. It presents the first voting-related page I want the end users to see. Some folks might prefer /voting.html (which has some advantages, even the dumbest browsers won't have any trouble mime-typing it) but I like to only use .html extentions for static pages. Maybe that's weird.

/voting/new_subject -- When a user wants to add a new subject for voting this is the URL called in the <form action= field (lets see how the wiki handles broken html...). The relevant form values are described in the comments near the "new_subject" procedure. I used to comment form values up here near the ns_register_proc but I've found that when I do that, they don't stay current (my lazyness or an inherent inefficiency problem, I'll declare the latter rather than risking the former).

/voting/place_vote -- this is a badly named url/procedure. It's badly named because it's actually presenting all the possible voting choices, not placing an actual vote. A better name would be "present_choices".

/voting/delete_subject -- I really like to empower users to maintain a web site by themselves. If I leave for a month, I don't want to see piles of cruft. So the voting booth allows whichever user created a given topic to delete it. This is the <form action reciever for a user deleting one of their voting topics.

/voting/dovote -- actually place_vote would be better but I already mis-used that one. This does the actual voting. It's somewhat complex because I want users to be able to change their votes after the fact. The method I'm using to allow for such changes is highly questionable (it works, but I have every reason to believe it doesn't scale). The ability of a site to scale nicely is really underrated. Bad algorithms (like the one I'm using here) can work for a small site with fifty hits a day, but if you get pounded for some reason (slashdot-effect) you're dead in the water. Another important scaling concern isn't hits, but expandability. In this case, if there are more than a couple dozen voting subjects the page gets so cluttered and some of the DB lookups get so slow that the usability of the site is flushed.

/voting/view -- finally a nice simple one. view_vote displays a quick summary of the voting results for a given subject. I tossed in a hack to allow this to also display results immediatly after someone votes with their vote highlighted. Yes, it's a hack. I call it that not because I'm risking DMCA violations but rather because it breaks the paradygm under which the module was designed. /voting/dovote doesn't actually ns_return anything. Instead it hands off to /voting/view; a dangerous choice because a problem might be more difficult to track down (it may not be immediatly apparant if the problem is in dovote or view), resulting in a potential for extra work down the road.

Database Schema

I can hear the database experts out there groaning. There are a number of flaws (one glaring flaw) in these two tables. I like to create procedures like this because when you're coding by the seat of your pants the schema is going to get tweaked. Dropping the tables and sequences by hand is quick but recreating them is a hassle.

jk-voting-force_voting_exist

Now for the procedures that make up the voting booth. First the entire vote_subjects procedure then I'll pull it apart and explain the odd parts.

jk-voting-vote_subjects

I'll be deliriously optimistic and assume that the entire procedure make sense with the exception of these two lines:

 set userrow user $db $conn
 append subject_lines template "voting_subject.html" $content_set

The first calls the "user" procedure which actually checks against a cookie to see who is logged on, validates their password and returns an ns_set of information about the user (simple enough).

The "template" procedure is outragously useful. Here it is:

jk-voting-template

That's it. It takes a file and an ns_set of key-value pairs. It replaces every instance of %%%%key%%%% with the corresponding value from the ns_set. This lets you create your page in _any_ html editor, just put %%%%keyname%%%% in for anything that needs to be dynamic. The alternatives are ADP or hardcoding html. ADP is a pretty good solution but I like to have a stronger barrier between code and data. Actually the latest Dr Dobbs (Feb 2002) has an article about Zope's approach to this very question.


Why do your own variable interpolation yourself, when you could have just used ns_adp_include of your template files, and used <% ns_set get key %> wherever appropriate, instead? Just curious ... -- Dossy


I ought to. ;) It's possible my template procedure is a little faster (no eval), and I can give users access to editing the template files without huge potential for destruction. But I still ought to switch. Jason Kane


In case that wasn't quite clear, here are the templates themselves:

jk-voting-voting_subject_page.html

jk-voting-voting_subject.html

Now that we know how to display all the voting topics, we need to actually let people vote. But before they can vote, they need to know what the options are. Since this is slick-n-smooth voting booth, they also need to be able to add new voting options. While we're at it, if this user has already voting on this subject we want to re-present all of the options but default to whatever they chose last time.