def process_request(self, request): accounts = get_user_accounts() if accounts: for account in accounts: account.fetch_full( token = account.get_default_token(), depth = 1, async = True, async_priority = 1 )
def process_request(self, request): accounts = get_user_accounts() if accounts: for account in accounts: account.fetch_full( token=account.get_default_token(), depth=1, async=True, async_priority=1, notify_user=request.user, )
def objects(request): return dict( user_accounts = get_user_accounts() )
def accounts_dict(request): """ Return a dict with all accounts of the current user """ return dict((a.id, a) for a in get_user_accounts())