Introduce constraints and name mapping to source plugin database.

- Using default values now instead of NULL to signal empty field
  because NULL values are considered distinct in the context of
  UNIQUE table constraints in sqlite
- Introduced new table for mappings from sid, game, server and team
  to channel name i preparation for new functionality
- Updated and expanded unit test
This commit is contained in:
Stefan Hacker
2013-03-23 15:16:23 +01:00
parent 28195110c0
commit 0782eace33
5 changed files with 130 additions and 35 deletions

View File

@@ -57,7 +57,7 @@ class source(MumoModule):
('teams', commaSeperatedStrings, ["Lobby", "Spectator", "Team one", "Team two", "Team three", "Team four"]),
('restrict', x2bool, True),
('serverregex', re.compile, re.compile("^\[[\w\d\-\(\):]{1,20}\]$")),
('deleteifunused', x2bool, True)
('deleteifunused', x2bool, True)
)
default_config = {'source':(