MikeRemoteRendering

From WeBWorK
Jump to: navigation, search
This article has been retained as a historical document. It is not up-to-date and the formatting may be lacking. Use the information herein with caution.

Here is a possible request format proposed by Mike, building on his ww_daemon.pl server. While I tried to keep the request format as similar to the format used by PG::Local as possible, he has started to explore structuring the data more and expanding the possible functionality of the server.

  • Request_values
    • authentication_data
      • course string: default: daemon_course
      • user default: none
      • password default: none
      • sessionKey default: none
      • problemLibrary default: daemon_problem_library
    • service_requests
      • renderProblemFile
      • special requests requiring authorization
          • Such as PRINT_FILE_NAMES_FOR
      • fetchProblemSource
      • renderSource
      • renderEquation
      • problemLibraryRequest
      • instructorRequest
        • Modify course in some way.
    • envir_required (these values must be given by the requesting form)
      • server fileName? or included source?
        • source string: base64 encoded
        • fileName string: setAlgebra8AbsoluteValue/srw1_8_26.pg
      • answer_form_submitted number: if yes, then inputs_ref required
        • inputs_ref table:
          • AnSwEr1 string:
          • AnSwEr2 string:
          • AnSwEr3 string:
    • envir_override (these override values supplied by the server)
      • dates
        • answerDate string: default: far future 4014438528
        • dueDate string: default: far future 4014438528
        • formattedAnswerDate string: default: far future 6/19/00
        • formattedDueDate string: default: far future 6/19/00
        • formattedOpenDate string: default: far past 6/19/00
        • openDate string: default: far past 3014438528
      • courseName string: default: daemon_course
      • displayMode string: default: HTML_tth
      • mode string: obsolete? see displayMode
      • pg_macros_data
        • functAbsTolDefault string: 0.0000001
        • functLLimitDefault number: 0
        • functMaxConstantOfIntegration double: 1000000000000.0
        • functNumOfPoints number: 5
        • functRelPercentTolDefault double: 0.000001
        • functULimitDefault number: 1
        • functVarDefault string: x
        • functZeroLevelDefault double: 0.000001
        • functZeroLevelTolDefault double: 0.000001
        • numAbsTolDefault double: 0.0000001
        • numFormatDefault string:  %0.13g
        • numRelPercentTolDefault double: 0.0001
        • numZeroLevelDefault double: 0.000001
        • numZeroLevelTolDefault double: 0.000001
      • student_problem_data
        • probFileName string: obsolete see fileName
        • problemSeed string: default: 1234
        • problemValue number: default: 1
        • probNum number: default: 1
        • psvn number: default: 123 obsolete?
        • psvnNumber number: obsolete? 123
        • questionNumber number: obsolete?
        • sectionName string: default: empty
        • sectionNumber number: default: empty
        • sessionKey string: default: Not defined
        • setNumber string: default: empty
        • studentLogin string: default: guest_user
        • studentName string: default: Guest User
    • envir_server_supplied_values (these can only be supplied by the server, or by a request with special privileges.)
      • paths ----set in server config file
        • externalGif2EpsPath string: not defined
        • externalPng2EpsPath string: not defined
        • externalTTHPath string: Not defined
        • CAPA_Graphics_URL string: http://webwork.math.rochester.edu/gage/webwork/CAPA_Graphics/
        • CAPA_GraphicsDirectory string: /ww/webwork/CAPA/CAPA_graphics/
        • CAPA_MCTools string: /ww/webwork/CAPA/CAPA_MCTools/
        • CAPA_Tools string: /ww/webwork/CAPA/CAPA_Tools/
        • cgiDirectory string: obsolete?
        • cgiURL string: obsolete?
        • classDirectory string: obsolete?
        • courseScriptsDirectory string: obsolete
        • htmlDirectory string: /u/gage/xmlrpc/experiments/html/
        • htmlURL string: http://webwork.math.rochester.edu/gage/html/
        • macroDirectory string: obsolete?
        • scriptDirectory string: obsolete?
        • tempDirectory string: defined by server
        • templateDirectory string: obsolete?
        • tempURL string: defined by server
        • webworkDocsURL string: http://webwork.math.rochester.edu/webwork_gage_system_html/
      • numOfAttempts number: default: from database or from special request
      • PRINT_FILE_NAMES_FOR list: default: from database or from special request {"gage"}
      • extra_packages_to_load list: {"AlgParserWithImplicitExpand", "Expr", "ExprWithImplicitExpand", "AnswerEvaluator", "AnswerEvaluatorMaker"}
      • modules_to_evaluate list: {"Exporter", "DynaLoader", "GD", "WWPlot", "Fun", "Circle", "Label", "PGrandom", "Units", "Hermite", "List", "Match", "Multiple", "Select", "AlgParser", "AnswerHash", "Fraction", "VectorField", "Complex1", "Complex", "MatrixReal1", "Matrix", "Distributionproblem_state table:
      • num_of_correct_ans number: from database or from special request
      • num_of_incorrect_ans number: from database or from special request
      • recorded_score double: from database or from special request
  • Return_values
    • answers table:
    • compute_time string:
    • elapsedTime_secs double: 2.95
    • errors string:
    • header_html string: (e.g. javaScript ) base64 encoded
    • PG_flag table:
    • problem_result table:
      • errors string:
      • msg string: This problem did not ask any questions.
      • score number: 0
      • type string: std_problem_grader
    • problem_state table:
      • num_of_correct_ans number: 2
      • num_of_incorrect_ans number: 5
      • recorded_score string: 1.0000000000000
    • htmlOutput string: base64 encoded
    • WARNINGS:

-- Main.SamHathaway - 09 Dec 2003

follow us