If you benefit from web2py hope you feel encouraged to pay it forward by contributing back to society in whatever form you choose!
Marked:
Package type:
plugin

Repository

  • Project:SnowingWishes
  • Type:Git
  • Project's site
  • Root location:https://github.com/zhxliao/SnowingWishes

Links

License


SnowingWishes

Web2py plugin and a webpage for wishes with a snowing effect, using HTML5 & JS

The preview site is https://piggy1989.pythonanywhere.com/ylrc/plugin_wish/wishes

All you need to do is two steps:

1.Adding the following script in your default.py.

def wish():
    wishes=db(db.plugin_wish_wishes.apply_time!=None).select(orderby=~db.plugin_wish_wishes.apply_time, limitby=(0,100))
    return dict(wishes=wishes)

2.Adding the following script in your db.py.

from plugin_wish import Wish
wish = Wish(db)
wish.define_tables()

Related slices

Comments (2)


Hosting graciously provided by:
Python Anywhere