def __init__(self, conf, db):
self.conf = conf<EOL>self.db = db<EOL>self.limits = []<EOL>self.limit_map = {}<EOL>self.limit_sum = None<EOL>if conf.to_bool(conf['<STR_LIT>'].get('<STR_LIT>', '<STR_LIT>'), False):<EOL><INDENT>self.control_daemon = remote.RemoteControlDaemon(self, conf)<EOL><DEDENT>else:<EOL><INDENT>self.control_daemon = control.ControlDaemon(self, conf)<EOL><DEDENT>self.control_daemon.start()<EOL>
Initialize a LimitContainer.  This sets up an appropriate
control daemon, as well as providing a container for the
limits themselves.

:param conf: A turnstile.config.Config instance containing the
             configuration for the ControlDaemon.
:param db: A database handle for the Redis database.