Commit 0f93cdf3 authored by Marc Duez's avatar Marc Duez
Browse files

server : add db and auth to current object (so we can access db and auth from modules)

parent ec81d3b6
# -*- coding: utf-8 -*-
import defs
from gluon import current
#########################################################################
## This scaffolding model makes your app work on Google App Engine too
......@@ -87,7 +88,6 @@ use_janrain(auth, filename='private/janrain.key')
## >>> for row in rows: print row.id, row.myfield
#########################################################################
db.define_table('patient',
Field('first_name','string'),
Field('last_name','string'),
......@@ -281,3 +281,7 @@ def _init_log():
return MsgUserAdapter(logger, {})
log = _init_log()
current.db = db
current.auth = auth
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment