Forum Home
Welcome to the new pyForum.org.
A message board system written in pure python using the web2py framework.
pyForum is sporting a new, completely re-designed interface and back-end
Download pyForum from https://bitbucket.org/speedbird/pyforum
A question
By: user_201
Rank: Starfleet Ensign
Postings: 1
From: Unknown
Posted: Sun, 06 May, 2012 - 01:12 PM

Can anyone answer this question?


doctor(name, phone, expertise)
where
name is a string of 40 characters,
phone is a string of 25 chars, and
expertise is a string of 300 characters,


complete the the following form:

Code Location

Complete the table definition statement: Indicate the name of the file in which the code
db.define_table( should be placed and the path to the file:

File name:
Path to the file:
web2py\



The file qry.py contains the following function: Complete the path to qry.py:
web2py\
def surgeon():
tuples=db(db.doctor.expertise
.contains(‘surgeon’))
.select(db.doctor.ALL)
return dict(tuples=tuples)




The view file surgeon.html has the following code: Complete the path to surgeon.html

{{=tuples}} web2py\













By: awilliman01
Rank: Starfleet Ensign
Postings: 5
From: Unknown
Posted: Sat, 09 June, 2012 - 05:00 AM

I'm not sure what the question is?
Are you getting errors with your code or are you asking where to start?
You can name your files anything you want in web2py. Model files go in the models folder, etc.
Have you read the web2py online book?


From: user_201

Can anyone answer this question?


doctor(name, phone, expertise)
where
name is a string of 40 characters,
phone is a string of 25 chars, and
expertise is a string of 300 characters,


complete the the following form:

Code Location

Complete the table definition statement: Indicate the name of the file in which the code
db.define_table( should be placed and the path to the file:

File name:
Path to the file:
web2py\



The file qry.py contains the following function: Complete the path to qry.py:
web2py\
def surgeon():
tuples=db(db.doctor.expertise
.contains(‘surgeon’))
.select(db.doctor.ALL)
return dict(tuples=tuples)




The view file surgeon.html has the following code: Complete the path to surgeon.html

{{=tuples}} web2py\














By: awilliman01
Rank: Starfleet Ensign
Postings: 5
From: Unknown
Posted: Sat, 09 June, 2012 - 05:00 AM

I'm not sure what the question is?
Are you getting errors with your code or are you asking where to start?
You can name your files anything you want in web2py. Model files go in the models folder, etc.
Have you read the web2py online book?


From: user_201

Can anyone answer this question?


doctor(name, phone, expertise)
where
name is a string of 40 characters,
phone is a string of 25 chars, and
expertise is a string of 300 characters,


complete the the following form:

Code Location

Complete the table definition statement: Indicate the name of the file in which the code
db.define_table( should be placed and the path to the file:

File name:
Path to the file:
web2py\



The file qry.py contains the following function: Complete the path to qry.py:
web2py\
def surgeon():
tuples=db(db.doctor.expertise
.contains(‘surgeon’))
.select(db.doctor.ALL)
return dict(tuples=tuples)




The view file surgeon.html has the following code: Complete the path to surgeon.html

{{=tuples}} web2py\














Welcome
System Announcements
Latest Posts
Support pyForum