I tried this change and it returns a new error: '<type 
'exceptions.AttributeError'> 'NoneType' object has no attribute 'title''. The 
blow example fixed it up though. Thanks.

On Saturday, March 3, 2012 7:57:45 PM UTC-8, rochacbruno wrote:
>
>
>
> On Sun, Mar 4, 2012 at 12:55 AM, HittingSmoke wrote:
>
>> def view():
>>     postid = request.args(0) *or redirect(URL('default', 'index'))*
>>     post = db(db.blogPost.id == postid).select()*.first()*
>>     db.blogComment.post.default = postid
>>     commentForm = SQLFORM(db.blogComment)
>>     if commentForm.process().accepted:
>>         response.flash = 'Comment accepted'
>>     elif commentForm.errors:
>>         response.flash = 'Error posting comment.'
>>     return dict(post=post, commentForm=commentForm)
>>
>
>
>
> -- 
>
> Bruno Rocha
> [http://rochacbruno.com.br]
>
>

Reply via email to