examples uses cookie based sessions
This commit is contained in:
@@ -54,13 +54,6 @@ def raisehttp():
|
||||
raise HTTP(400, 'internal error')
|
||||
|
||||
|
||||
def raiseexception():
|
||||
""" generates an exeption, logs the event and returns a ticket number """
|
||||
|
||||
1 / 0
|
||||
return 'oops'
|
||||
|
||||
|
||||
def servejs():
|
||||
""" serves a js document """
|
||||
|
||||
@@ -69,7 +62,6 @@ def servejs():
|
||||
gluon.contenttype.contenttype('.js')
|
||||
return 'alert("This is a Javascript document, it is not supposed to run!");'
|
||||
|
||||
|
||||
def makejson():
|
||||
import gluon.contrib.simplejson as sj
|
||||
return sj.dumps(['foo', {'bar': ('baz', None, 1.0, 2)}])
|
||||
|
||||
Reference in New Issue
Block a user