Change college team prefixs

See the regex; they're now team-PSC and so forth. This was going to
be shipped last year, but there wasn't either time nor will.
Add an init.py so it can be imported

Signed-off-by: Sam Phippen <samphippen@googlemail.com>
Make the gitmodule path for sr tools right

Signed-off-by: Sam Phippen <samphippen@googlemail.com>
Whitespace
Ensure that when printing usage for passwd, we don't error.

Previously, we printed the doc and then continued anyway, which
resulted in the user seeing an error.
Actually print the right usage for the passwd command.
Also return early in another fail case.

As spotted by Alistair here: https://www.studentrobotics.org/gerrit/#/c/30/1/c_user.py
Fix a USAGE block.

Change-Id: I410e51e55d0b686cd2cadd3a2bf8cf70d2ecf87f
Bring userman's team handling somewhat up to date.

This moves to the current prefix, and adds some support for TLA based
teams. Note, however, that the team creation from files doesn't yet
support TLAs.

Change-Id: I14bfa14e4044bb2e24c7ef49d3fffa6a0d3789c2
Add the script I've been using to import users.

That is, when the scripts from nemesis.git generate a csv of user
accounts to generate, this script adds them and mails them.
Avoid trying to delete a user that doesn't exist.

Change-Id: I888055eaac3ee82dceb60857f8e5102fb4749055
Whitespace tidyup.

Change-Id: I2324db47f3dbbf6b9171638d918d6a43e5c39daf
Fix #1852: Use the new_username method from srusers.

This ensures that all user-creation follows the same rules for new
user names, since the underlying library now contains the logic in
use.

Note that the actual fix for this ticket is in the logic in the
library method -- this commit just changes this client to use that
method instead of the local version.

Change-Id: Ia305070ced7819e53e45c1e0d1f46ebb30a39d07
Move the team & college prefix & patterns into constants.

This makes them much easier to change if needed, and also makes it
clearer what they are from a quick look at the file.

Change-Id: I07b588f6aa98172ac4305c18116d9c6c08c4f4da
Get the team & college prefixes from srusers.

This delegates the responsibility for knowing these to the common
library, which improves portability.

Change-Id: I4a1631ff3ec2424c1a4972adbe23a703a7656916
Move colleges to being TLA based too.

This has been the case for a while now, so this just brings userman
up to date with our other systems.

Change-Id: Id5de2eeeb307cbaac2fc8fa9a65829bdcad0bf5b
Add scripts to help create kickstart users.

getteamsdata extracts the team data from trac, outputting it to a
file (teams_map.csv) for storage and inspection.

kickstartusers creates a user per team from the teams_map.csv file,
ensuring that this user is a student, and is in the right team and
college groups (which it creates if needed).

Change-Id: I69390b6a0a59f2e2eea66fbd17738471fe21c8b9
Make getteamsdata.py executable.
Make kickstartusers executable.
Passwd on a user must be set via set_passwd