INNER CODE UNIT · Python

UpdateLog

weolar/miniblink49 · third_party/WebKit/Tools/RebaselineLogServer/main.py:109

class UpdateLog(webapp2.RequestHandler):
    def post(self):
        new_log_data = self.request.POST.get(LOG_PARAM)

        command_json = self.request.POST.get(COMMAND_PARAM)
        command_data = json.loads(command_json) if command_json else None

        command_output = ""
        if command_data is not None:
            command_output = "\n" + execute_command(command_data)
            new_log_data += command_output

        # This entry is set to on whenever a new auto-rebaseline run is going to
        # start logging entries. If this is not on, then the log will get appended
        # to the most recent log entry.
        new_entry = self.request.POST.get(NEW_ENTRY_PARAM) == "on"

        out = "Wrote new log entry."

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…