mirror of
https://github.com/ziirish/burp-ui.git
synced 2026-05-21 06:45:24 -06:00
update code interface/inheritance
This commit is contained in:
parent
5c6e2f6813
commit
3541fa9926
3 changed files with 8 additions and 5 deletions
|
|
@ -333,9 +333,10 @@ class Parser(BUIparser,BUIlogging):
|
|||
u'hard_quota': "Do not back up the client if the estimated size of all files is greater than the specified size. Example: 'hard_quota = 100Gb'. Set to 0 (the default) to have no limit.",
|
||||
}
|
||||
|
||||
#def __init__(self, app=None, conf=None):
|
||||
#self._logger('info', 'temporary dir: %s', self.tmpdir)
|
||||
|
||||
def __init__(self, app=None, conf=None):
|
||||
super(Parser, self).__init__(app, conf)
|
||||
self._logger('info', 'Parser initialized with: %s', self.conf)
|
||||
self.clientconfdir = None
|
||||
|
||||
def _readfile(self, f=None, sourced=False):
|
||||
if not f:
|
||||
|
|
@ -381,6 +382,8 @@ class Parser(BUIparser,BUIlogging):
|
|||
if not found:
|
||||
multi.append({'name': key, 'value': [val]})
|
||||
continue
|
||||
if key == u'clientconfdir':
|
||||
self.clientconfdir = val
|
||||
dic.append({'name': key, 'value': val})
|
||||
|
||||
return dic, boolean, multi, integer, other_files
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# -*- coding: utf8 -*-
|
||||
|
||||
class BUIparser:
|
||||
class BUIparser(object):
|
||||
def __init__(self, app=None, conf=None):
|
||||
self.app = app
|
||||
self.conf = conf
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ def currentframe():
|
|||
except:
|
||||
return sys.exc_info()[2].tb_frame.f_back
|
||||
|
||||
class BUIlogging:
|
||||
class BUIlogging(object):
|
||||
def _logger(self, level, *args):
|
||||
if self.app:
|
||||
logs = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue