def __init__(self, app=None):
        self.app = app
        self.admins = [
            'admin'
        ]
        self.clients = {}
        self.servers = {}
        self.standalone = self.app.standalone
        conf = self.app.config['CFG']
        c = ConfigParser.ConfigParser()
        adms = []
        with open(conf) as fp:
            c.readfp(fp)
            if c.has_section('BASIC:ACL'):
                try:
                    temp = c.get('BASIC:ACL', 'admin')
                    try:
                        adms = json.loads(temp)
                    except Exception as e:
                        self.builogger.error(str(e))
                        adms = [temp]
                except Exception as e:
                    self.builogger.warning(str(e))
                for opt in c.options('BASIC:ACL'):
                    if opt == 'admin':
                        continue
                    lit = c.get('BASIC:ACL', opt)
                    rec = []
                    try:
                        rec = json.loads(lit)
                        if isinstance(rec, dict):
                            self.servers[opt] = rec.keys()
                    except Exception as e:
                        self.builogger.error(str(e))
                        rec = [lit]
                    self.clients[opt] = rec

        if adms:
            self.admins = adms
        self._acl = BasicACL(self)
        self.builogger.debug('admins: ' + str(self.admins))
        self.builogger.debug('clients: ' + str(self.clients))
        self.builogger.debug('servers: ' + str(self.servers))
Starts a state transition given some event.
dataset/ETHPy150Open ziirish/burp-ui/burpui/misc/acl/basic.py/ACLloader.__init__--crossover with--dataset/ETHPy150Open chop-dbhi/django-sts/sts/shortcuts.py/start_transition