def setup_one_view(self):
if (PROP.getProperty(self.request, PROP.SITE_SETUP) == True):
return HTTPFound(location=self.request.route_path("welcome"))
setup = False
if (PROP.getProperty(self.request, PROP.VERSION) != None):
print "Database already setup!"
else:
# Setup the database
self.db_run_setup(self.request.root)
setup = True
return {
"setup": setup
}
评论列表
文章目录