Hi,

For the Wiki Tutorial, In the show(): controller in default.py there
is the following statement:

db.comment.page_id.default = this_page.id

I can't quite figure out what it means. Are we setting the default
value of the page_id field for the comment table to be 'this_page.id"?
However, in this case, this_page is being fetched from the database,
so potentially this default value could change everytime the show()
controller is called. This defeats the point of defining a default
value.

Additionally, I'm not really sure how this is used in the code?

I'm really enjoying learning this framework, thank you.

Best,

Aaron Levin

Reply via email to