>
> db.define_table('blog', 
> ...    format = '%(title, blog_date)s') 
>

First, for the 'format' above, I think you want:

format = '%(title)s, %(blog_date)s'
 

> how do i designation the db.blog_items.blog_id under the blog_items 
> function so crud.create will insert the record properly and fill the 
> blog_id field also?


You could pass the id of the current 'blog' record as an argument in the 
URL, and then do:

db.blog_items.blog_id.default = request.args(0)
form = crud.create(...)

Anthony 

Reply via email to