Learn to use the wiki here
This is nice:
if x == "Foo":
print "Bar"
def beforeNew(self):
# Assume that the 'isAuthorized' method contains
# the logic that determines what action the user
# may take.
if not self.isUserAuthorized("new"):
return "You are not authorized to create new Account records"
Strikeout!
[ square brackets ]