Question: configuration = AppConfig ( reload = True ) if not request.env.web 2 py _ runtime _ gae: # # if NOT running on Google App
configuration AppConfigreloadTrue
if not request.env.webpyruntimegae:
#
# if NOT running on Google App Engine use SQLite or other DB
H
db DALmysql:root:root@localhosttestsetencodingutfmb
migrateenabledFalse
else:
#
# connect to Google BigTable optional 'google:datastore:namespace
#
db DALgoogle:datastorendb
# store sessions and tickets there
#
session. connect request response,
# # or store session in Memcache, Redis, etc.
# from gluon.contrib. memdb import MEMDB
# from google.appengine.api.memcache import client
# session.connectrequest response, Client
#
db definetableauthors
Fieldid 'integer'
Fieldname requiresISNOTEMPTY
fieldbio 'text'
fieldemail requiresISEMAIL
db definetablebooks
field'id 'integer'
fieldtitie requiresISNOT EMPTY
Fieldauthor 'reference authors'
fieldpublicationyear', 'integer', requiresISINTINRANGE
Using DAL how would you select all books authored by author "Ahmed" who has id
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
