RepoCGI: add improved helpers
commitbbc0a0a582e89222b548401101ba693b710945ec
authorZachary T Welch <zw@superlucidity.net>
Mon, 26 Oct 2009 04:29:36 +0000 (25 21:29 -0700)
committerZachary T Welch <zw@superlucidity.net>
Wed, 28 Oct 2009 03:06:37 +0000 (27 20:06 -0700)
tree50e2c2a26fce02e9c3a6288f90cb019feacb9108
parent6f92e96db0d605bed50db99029172607af301792
RepoCGI: add improved helpers

- The wparam method issued warnings when retrieving undefined
  parameters. The new sparam method returns an empty string instead,
  which will help simplify the cgi scripts noticably.

- Add 'bye' method that prints and exits.  This is suitable for use by
  the cgi scripts to print an error and exit.  The arguments are wrapped
  with a <p>aragra</p>h and newline.

- Add load_project method to encapsulate common CGI checks.
- Add load_user method for similar reasons.
cgi/Git/RepoCGI.pm