projects
/
webpysample.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
AƱadido fichero gitignore
[webpysample.git]
/
view
/
reset.py
1
import web
2
import db
3
4
class Reset:
5
def GET(self):
6
session = web.ctx.session
7
orm = web.ctx.orm
8
all = orm.query(db.Test).all()
9
# deleting all
10
[orm.delete(a) for a in all]
11
session.count = 0
12
raise web.redirect("/")
13