Module ImportFrom alias ImportFrom alias alias Import alias ImportFrom alias ImportFrom alias Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam defaults Call NameLoad Lambda arguments args defaults NameLoad body For NameStore NameLoad body Expr Call NameLoad NameLoad NameLoad NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body If CompareGt Call NameLoad NameLoad Num body Assign NameStore Call AttributeLoad Str attr Call NameLoad NameLoad Raise Call NameLoad NameLoad orelse If BoolOpAnd CompareNotIn Str NameLoad CompareNotIn Str NameLoad body Assign NameStore Str Raise Call NameLoad NameLoad orelse Return Call AttributeLoad NameLoad attr orelse Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return CompareEq AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return CompareEq AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return CompareEq AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BoolOpAnd AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot Call AttributeLoad NameLoad attr body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad Assign NameStore NameLoad If NameLoad body Import alias Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Print TupleLoad Str NameLoad Assign NameStore Call NameLoad NameLoad NameLoad If CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Print TupleLoad Str NameLoad Return NameLoad decorator_list Assign AttributeStore NameLoad attr NameLoad Assign NameStore NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr keyword Dict Str Str If BoolOpAnd NameLoad NameLoad body Import alias Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr TryExcept body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr handlers ExceptHandler body Pass TryExcept body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr handlers ExceptHandler body Pass TryExcept body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr handlers ExceptHandler body Pass decorator_list FunctionDef arguments args NameParam defaults body Return BoolOpAnd CompareIsNot AttributeLoad NameLoad attr NameLoad CompareIsNot AttributeLoad NameLoad attr NameLoad CompareIsNot AttributeLoad NameLoad attr NameLoad CompareIsNot AttributeLoad NameLoad attr NameLoad CompareIsNot AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign AttributeStore NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign AttributeStore NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str If CompareIn Str AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str orelse If CompareIn Str AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Return Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword Str decorator_list decorator_list
N/A collections defaultdict lxml etree objectify N/A oauth2 outcome_response OutcomeResponse utils InvalidLTIConfigError N/A REPLACE_REQUEST replaceResult N/A DELETE_REQUEST deleteResult N/A READ_REQUEST readResult N/A accessors N/A operation score result_data outcome_response message_identifier lis_outcome_service_url lis_result_sourcedid consumer_key consumer_secret post_request OutcomeRequest N/A N/A N/A 
    Class for consuming & generating LTI Outcome Requests.

    Outcome Request documentation:
        http://www.imsglobal.org/LTI/v1p1/ltiIMGv1p1.html#_Toc319560472

    This class can be used both by Tool Providers and Tool Consumers, though
    they each use it differently. The TP will use it to POST an OAuth-signed
    request to the TC. A TC will use it to parse such a request from a TP.
     __init__ N/A N/A self opts N/A N/A defaultdict N/A N/A N/A N/A None N/A N/A accessor accessors N/A N/A N/A setattr self accessor None N/A N/A key val N/A N/A opts iteritems N/A N/A N/A setattr self key val N/A from_post_request N/A N/A post_request N/A N/A N/A 
        Convenience method for creating a new OutcomeRequest from a request
        object.

        post_request is assumed to be a Django HttpRequest object
         N/A request N/A OutcomeRequest N/A N/A request post_request post_request N/A N/A N/A request process_xml N/A post_request data N/A request N/A staticmethod post_replace_result N/A N/A self score result_data N/A None N/A N/A 
        POSTs the given score to the Tool Consumer with a replaceResult.

        OPTIONAL:
            result_data must be a dictionary
            Note: ONLY ONE of these values can be in the dict at a time,
            due to the Canvas specification.

            'text' : str text
            'url' : str url
         N/A N/A self operation REPLACE_REQUEST N/A N/A self score score N/A N/A self result_data result_data N/A N/A result_data None N/A N/A N/A N/A len result_data 1 N/A N/A error_msg N/A N/A Dictionary result_data can only have one entry. {0} entries were found. format N/A len result_data N/A N/A InvalidLTIConfigError error_msg N/A N/A N/A N/A text result_data N/A url result_data N/A N/A error_msg Dictionary result_data can only have the key "text" or the key "url". N/A N/A InvalidLTIConfigError error_msg N/A N/A N/A N/A self post_outcome_request N/A N/A N/A N/A self post_outcome_request N/A post_delete_result N/A N/A self N/A N/A N/A 
        POSTs a deleteRequest to the Tool Consumer.
         N/A N/A self operation DELETE_REQUEST N/A N/A N/A self post_outcome_request N/A post_read_result N/A N/A self N/A N/A N/A 
        POSTS a readResult to the Tool Consumer.
         N/A N/A self operation READ_REQUEST N/A N/A N/A self post_outcome_request N/A is_replace_request N/A N/A self N/A N/A N/A 
        Check whether this request is a replaceResult request.
         N/A N/A N/A self operation REPLACE_REQUEST N/A is_delete_request N/A N/A self N/A N/A N/A 
        Check whether this request is a deleteResult request.
         N/A N/A N/A self operation DELETE_REQUEST N/A is_read_request N/A N/A self N/A N/A N/A 
        Check whether this request is a readResult request.
         N/A N/A N/A self operation READ_REQUEST N/A was_outcome_post_successful N/A N/A self N/A N/A N/A N/A N/A self outcome_response N/A N/A N/A self outcome_response is_success N/A post_outcome_request N/A N/A self N/A N/A N/A 
        POST an OAuth signed request to the Tool Consumer.
         N/A N/A N/A N/A self has_required_attributes N/A N/A N/A InvalidLTIConfigError OutcomeRequest does not have all required attributes N/A consumer N/A N/A oauth2 Consumer key N/A self consumer_key secret N/A self consumer_secret N/A client N/A N/A oauth2 Client consumer N/A monkey_patch_headers True N/A monkey_patch_function None N/A monkey_patch_headers N/A N/A httplib2 N/A http N/A httplib2 Http N/A normalize N/A http _normalize_headers my_normalize N/A N/A self headers N/A N/A N/A N/A My Normalize headers N/A ret N/A normalize self headers N/A N/A authorization ret N/A N/A N/A ret N/A Authorization N/A N/A ret pop authorization N/A N/A My Normalize ret N/A ret N/A N/A N/A http _normalize_headers my_normalize N/A monkey_patch_function normalize N/A N/A response content N/A N/A client request N/A self lis_outcome_service_url POST body N/A N/A self generate_request_xml headers N/A Content-Type application/xml N/A N/A monkey_patch_headers monkey_patch_function N/A N/A httplib2 N/A http N/A httplib2 Http N/A N/A http _normalize_headers monkey_patch_function N/A N/A self outcome_response N/A N/A OutcomeResponse from_post_response response content N/A N/A self outcome_response N/A process_xml N/A N/A self xml N/A N/A N/A 
        Parse Outcome Request data from XML.
         N/A root N/A N/A objectify fromstring xml N/A N/A self message_identifier N/A str N/A N/A N/A root imsx_POXHeader imsx_POXRequestHeaderInfo imsx_messageIdentifier N/A N/A N/A result N/A N/A root imsx_POXBody replaceResultRequest N/A N/A self operation REPLACE_REQUEST N/A N/A self lis_result_sourcedid N/A N/A N/A result resultRecord sourcedGUID sourcedId N/A N/A self score N/A str N/A N/A N/A N/A result resultRecord result resultScore textString N/A N/A N/A N/A N/A N/A N/A result N/A N/A root imsx_POXBody deleteResultRequest N/A N/A self operation DELETE_REQUEST N/A N/A self lis_result_sourcedid N/A N/A N/A result resultRecord sourcedGUID sourcedId N/A N/A N/A N/A N/A N/A N/A result N/A N/A root imsx_POXBody readResultRequest N/A N/A self operation READ_REQUEST N/A N/A self lis_result_sourcedid N/A N/A N/A result resultRecord sourcedGUID sourcedId N/A N/A N/A N/A N/A has_required_attributes N/A N/A self N/A N/A N/A N/A N/A N/A self consumer_key None N/A N/A self consumer_secret None N/A N/A self lis_outcome_service_url None N/A N/A self lis_result_sourcedid None N/A N/A self operation None N/A generate_request_xml N/A N/A self N/A N/A N/A root N/A N/A etree Element imsx_POXEnvelopeRequest xmlns http://www.imsglobal.org/services/ltiv1p1/xsd/imsoms_v1p0 N/A header N/A N/A etree SubElement root imsx_POXHeader N/A header_info N/A N/A etree SubElement header imsx_POXRequestHeaderInfo N/A version N/A N/A etree SubElement header_info imsx_version N/A N/A version text V1.0 N/A message_identifier N/A N/A etree SubElement header_info imsx_messageIdentifier N/A N/A message_identifier text N/A self message_identifier N/A body N/A N/A etree SubElement root imsx_POXBody N/A request N/A N/A etree SubElement body N/A %s%s N/A N/A self operation Request N/A record N/A N/A etree SubElement request resultRecord N/A guid N/A N/A etree SubElement record sourcedGUID N/A sourcedid N/A N/A etree SubElement guid sourcedId N/A N/A sourcedid text N/A self lis_result_sourcedid N/A N/A N/A self score None N/A N/A result N/A N/A etree SubElement record result N/A result_score N/A N/A etree SubElement result resultScore N/A language N/A N/A etree SubElement result_score language N/A N/A language text en N/A text_string N/A N/A etree SubElement result_score textString N/A N/A text_string text N/A N/A N/A self score __str__ N/A N/A self result_data N/A N/A resultData N/A N/A etree SubElement result resultData N/A N/A text N/A self result_data N/A N/A resultDataText N/A N/A etree SubElement resultData text N/A N/A resultDataText text N/A N/A self result_data N/A text N/A N/A N/A url N/A self result_data N/A N/A resultDataURL N/A N/A etree SubElement resultData url N/A N/A resultDataURL text N/A N/A self result_data N/A url N/A N/A N/A etree tostring root xml_declaration True encoding utf-8 N/A N/A