/main_action
main action

Sourcecode in Poll/actions.js:
1:   function main_action() {
2:      if (req.data.cancel)
3:         res.redirect(this.href());
4:      else if (req.data.vote) {
5:         if (!session.user)
6:            checkIfLoggedIn(this.href());
7:         try {
8:            res.message = this.evalVote(req.data, session.user);
9:            res.redirect(this.href("results"));
10:        } catch (err) {
11:           res.message = err.toString();
12:        }
13:     }
14:     res.data.action = this.href();
15:     res.data.title = getMessage("Poll.viewTitle", {question: this.question});
16:     res.data.body = this.renderSkinAsString("main");
17:     this.site.renderSkin("page");
18:     return;
19:  }