Ejemplo n.º 1
0
 def __init__(self, *args, **kwargs):
     self.birthday = kwargs.pop('birthday')
     self.where = None
     LoginBrowser.__init__(self, *args, **kwargs)
     self.cache = {}
     self.cache["investments_data"] = {}
     self.only_deferred_cards = {}
Ejemplo n.º 2
0
 def __init__(self, *args, **kwargs):
     self.birthday = kwargs.pop('birthday')
     self.where = None
     LoginBrowser.__init__(self, *args, **kwargs)
     self.cache = {}
     self.cache["investments_data"] = {}
     self.only_deferred_cards = {}
Ejemplo n.º 3
0
    def __init__(self, *args, **kwargs):
        self.where = None
        LoginBrowser.__init__(self, *args, **kwargs)
        self.cache = {}
        self.cache["investments_data"] = {}
        self.only_deferred_cards = {}

        # will contain a list of the spaces
        # (the parameters needed to check and change them)
        # if not, it is an empty list
        self.multispace = None
        self.current_space = None

        # ing website is stateful, so we need to store the current subscription when download document to be sure
        # we download file for the right subscription
        self.current_subscription = None
Ejemplo n.º 4
0
    def __init__(self, *args, **kwargs):
        self.where = None
        LoginBrowser.__init__(self, *args, **kwargs)
        self.cache = {}
        self.cache["investments_data"] = {}
        self.only_deferred_cards = {}

        # will contain a list of the spaces
        # (the parameters needed to check and change them)
        # if not, it is an empty list
        self.multispace = None
        self.current_space = None

        # ing website is stateful, so we need to store the current subscription when download document to be sure
        # we download file for the right subscription
        self.current_subscription = None
Ejemplo n.º 5
0
 def prepare_request(self, req):
     token = self.session.cookies.get("csrftoken")
     if token:
         req.headers.setdefault("X-CSRFToken", token)
     if self.threads.match(req.url) or self.messages.match(req.url):
         req.headers.setdefault("X-Requested-With", "XMLHttpRequest")
     return LoginBrowser.prepare_request(self, req)
Ejemplo n.º 6
0
 def prepare_request(self, req):
     token = self.session.cookies.get("csrftoken")
     if token:
         req.headers.setdefault("X-CSRFToken", token)
     if self.threads.match(req.url) or self.messages.match(req.url):
         req.headers.setdefault("X-Requested-With", "XMLHttpRequest")
     return LoginBrowser.prepare_request(self, req)
Ejemplo n.º 7
0
 def __init__(self, *args, **kwargs):
     self.birthday = re.sub(r'[^\d]', '', kwargs.pop('birthday'))
     self.where = None
     LoginBrowser.__init__(self, *args, **kwargs)
Ejemplo n.º 8
0
 def __init__(self, *args, **kwargs):
     LoginBrowser.__init__(self, *args, **kwargs)
     self.investments = {}
     self.action_needed_processed = False
     self.add_recipient_form = None
Ejemplo n.º 9
0
 def __init__(self, username, password, secret, *args, **kwargs):
     self.secret = secret
     LoginBrowser.__init__(self, username, password, *args, **kwargs)
Ejemplo n.º 10
0
 def __init__(self, *args, **kwargs):
     LoginBrowser.__init__(self, *args, **kwargs)
     self.investments = {}
Ejemplo n.º 11
0
 def __init__(self, *args, **kwargs):
     self.birthday = kwargs.pop('birthday', None)
     self.where = None
     LoginBrowser.__init__(self, *args, **kwargs)
Ejemplo n.º 12
0
 def __init__(self, url, course, *args, **kwargs):
     self.BASEURL = url
     self.course = course
     LoginBrowser.__init__(self, *args, **kwargs)
Ejemplo n.º 13
0
 def __init__(self, broker, *args, **kwargs):
     self.broker = broker
     LoginBrowser.__init__(self, *args, **kwargs)
Ejemplo n.º 14
0
 def __init__(self, *args, **kwargs):
     LoginBrowser.__init__(self, *args, **kwargs)
     self.investments = {}
Ejemplo n.º 15
0
 def __init__(self, *args, **kwargs):
     self.birthday = re.sub(r'[^\d]', '', kwargs.pop('birthday'))
     self.where = None
     LoginBrowser.__init__(self, *args, **kwargs)
Ejemplo n.º 16
0
 def __init__(self, username, password, secret, *args, **kwargs):
     self.accounts_list = dict()
     self.secret = secret
     LoginBrowser.__init__(self, username, password, *args, **kwargs)
Ejemplo n.º 17
0
 def __init__(self, username, password, secret, *args, **kwargs):
     self.secret = secret
     LoginBrowser.__init__(self, username, password, *args, **kwargs)
Ejemplo n.º 18
0
 def __init__(self, *args, **kwargs):
     LoginBrowser.__init__(self, *args, **kwargs)
     self.urlid = None
     self.status = "active"
Ejemplo n.º 19
0
 def __init__(self, url, course, *args, **kwargs):
     self.BASEURL = url
     self.course = course
     LoginBrowser.__init__(self, *args, **kwargs)
Ejemplo n.º 20
0
 def __init__(self, *args, **kwargs):
     LoginBrowser.__init__(self, *args, **kwargs)
     self.cache = {}
     self.cache["investments"] = {}
Ejemplo n.º 21
0
 def __init__(self, broker, *args, **kwargs):
     self.broker = broker
     LoginBrowser.__init__(self, *args, **kwargs)