Just my 2 cents: I like having the line split between as it shows actions for different pages. I wouldn't put a blank line after the def statement though. It is a style preference as @mediocrity said.