#NEWLINE# def __init__( self , session = None ) : #NEWLINE# #INDENT# '\n        :param session: The session which will be used for interacting\n                        with okcupid.com\n                        If none is provided, one will be instantiated\n                        automatically with the credentials in\n                        :mod:`~okcupyd.settings`\n        :type session: :class:`~okcupyd.session.Session`\n        ' #NEWLINE# self . _session = ( session or Session . login ( ) ) #NEWLINE# self . _message_sender = helpers . Messager ( self . _session ) #NEWLINE# assert ( self . _session . log_in_name is not None ) , 'The session provided to the user constructor must be logged in.' #NEWLINE# self . profile = Profile ( self . _session , self . _session . log_in_name ) #NEWLINE# self . inbox = util . Fetchable ( ThreadFetcher ( self . _session , 1 ) ) #NEWLINE# self . outbox = util . Fetchable ( ThreadFetcher ( self . _session , 2 ) ) #NEWLINE# self . drafts = util . Fetchable ( ThreadFetcher ( self . _session , 4 ) ) #NEWLINE# self . visitors = util . Fetchable . fetch_marshall ( util . GETFetcher ( self . _session , 'visitors' , ( lambda start_at : { #NEWLINE# #INDENT# 'low' : start_at , #NEWLINE# #UNINDENT# } ) ) , util . PaginationProcessor ( ( lambda user : Profile ( self . _session , user ) ) , self . _visitors_xpb , self . _visitors_current_page_xpb , session . _visitors_total_page_xpb ) ) #NEWLINE# self . questions = Questions ( self . _session ) #NEWLINE# self . attractiveness_finder = AttractivenessFinder ( self . _session ) #NEWLINE# self . photo = PhotoUploader ( self . _session ) #NEWLINE# self . location_cache = LocationQueryCache ( self . _session )