Hi all,
Working through the official documentation on Chapter 3, on Image blog
example.
in models.db.py
db.define_table('image', ...)
db.define_table('post', ...)
...
db.post.image_id.requires = IS_IN_DB(db, db.image.id, '%(title)s')
in controllers/default.py
def show():
image = db.imag
depending on the database).
Thanks,
Dan
On Thursday, March 6, 2014 11:41:12 PM UTC-8, Dan Why wrote:
>
> Hi all,
>
> Working through the official documentation on Chapter 3, on Image blog
> example.
>
> in models.db.py
> db.define_table('image
I am building a TODO-list type application while studying web2py. For each
task, I would like to set a priority. Having integer values for priority
makes it easier to query something like db(db.task.priority > 1).select().
Because there will be only a few of them, I would just create some
cons
3 matches
Mail list logo