mechanize python XE #21
def __init__(self, events_handler, rcs=1, firstevents=1, spid='', random_id=None, topics=[], lang='en', event_delay=3):
self.events_handler = events_handler
self.rcs = rcs
self.firstevents = firstevents
self.spid = spid
self.topics = topics
self.lang = lang
self.event_delay = event_delay
self.random_id = random_id or self._randID(9)
self.connected = False
self.server = random.choice(self.SERVER_LIST)
self.client_id = None
self.connected = False
self.browser = mechanize.Browser()
self.browser.addheaders = []
# Call additional setup
self.events_handler._setup(self)