Files changed (4)
+A simple wishlist app based on web.py. Allows people to check off things they intend to buy, and uncheck if they make a mistake. assumes that people wont uncheck others boxes, using a small record of when things were checked and unchecked as a slight deterance. Don't use this anywhere where you think people would want to mess with you!
+To get it running, you need an sqlite database file with two tables, items and checks. I've provided an empty one that should work, which means all you need to do is run:
+and then set up a web server to sit in front of it (I use nginx, but lighttpd or the like would work equally). alternatively, you could use the built in debuggging web server with:
+And then of course to actually add items to the list you just need to insert rows into the database table 'items'. Since this was just something for me to use, it was easiest to just use:
+INSERT into items (name, dec, url, price, checked) VALUES ("Name", "Some longer description", "Url to where it can be bought", "$20", false);
Binary file added.
+The way this works is pretty simple - if you find an item (or multiple) that you think match what you would like to gift, click on the check box - that will mark that you are interested in giving that item, so noone duplicates anything (but, to preserve the element of surprise, neither I nor anyone else can see who has checked what). Because of that anonymity, and since it would be good to be able to uncheck something, ANYONE can uncheck something - please dont do it! And the checks and unchecks are recorded (viewable in gray below the description). Clicking on the price links to somewhere it can be purchased.
+<h4>Finally - another option is to give no gift at all! The point of this is not to streamline gift getting, but rather to avoid if at all possible getting unnecessary stuff, and try to make doing that as easy as possible!</h4>
+ onclick="toggleCheck($i.id)"></input></form></td><td style="font-weight: bold;">$i.name</td><td><a href="$i.url">$i.price</a></td><td style="padding: 10px; color: #777; font-size: .9em;">$i.dec</td></tr>