import web
from bsddb import db
class index:
def GET(self,path):
render = web.template.render('templates/', cache=False)
infoObject = {"title":"Test page","header":'This is a test page',"body":"It really is one. I promise"}
#infoObject = "WTF"
#print render.test(infoObject)
#print "yo"
a=web.storify(dict(spam="eggs", tasty="bacon"))
print a.spam
and
>>> import web
>>> a=web.storify(dict(spam="eggs", tasty="bacon"))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'storify'