Skip to content

Commit

Permalink
Fix long lines
Browse files Browse the repository at this point in the history
  • Loading branch information
shampletov-no committed Jan 15, 2024
1 parent 718a92d commit a277116
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions frontend/handler/editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -682,21 +682,32 @@ def get(self):
breadcrumbs=[], version=BUILDER_VERSION, page="Главная",
get_tags=self.get_tags)
elif kind is ResourceKind.command:
self.render("editor/command.html", command=self._editor.read_command(handle),
self.render("editor/command.html",
command=self._editor.read_command(handle),
messages=EditorHandler.messages,
breadcrumbs=self._editor.breadcrumbs_by_handle(handle, self), version=BUILDER_VERSION, page="Главная")
breadcrumbs=self._editor.breadcrumbs_by_handle(handle, self),
version=BUILDER_VERSION,
page="Главная")
elif kind is ResourceKind.accessor:
self.render("editor/accessor.html", accessor=self._editor.read_accessor(handle),
self.render("editor/accessor.html",
accessor=self._editor.read_accessor(handle),
messages=EditorHandler.messages,
breadcrumbs=self._editor.breadcrumbs_by_handle(handle, self), version=BUILDER_VERSION, page="Главная")
breadcrumbs=self._editor.breadcrumbs_by_handle(handle, self),
version=BUILDER_VERSION,
page="Главная")
elif kind is ResourceKind.argument:
self.render("editor/argument.html", argument=self._editor.read_argument(handle),
self.render("editor/argument.html",
argument=self._editor.read_argument(handle),
messages=EditorHandler.messages,
breadcrumbs=self._editor.breadcrumbs_by_handle(handle, self), version=BUILDER_VERSION, page="Главная")
breadcrumbs=self._editor.breadcrumbs_by_handle(handle, self),
version=BUILDER_VERSION,
page="Главная")
elif kind is ResourceKind.constant:
self.render("editor/constant.html", constant=self._editor.read_constant(handle),
self.render("editor/constant.html",
constant=self._editor.read_constant(handle),
messages=EditorHandler.messages,
breadcrumbs=self._editor.breadcrumbs_by_handle(handle, self), version=BUILDER_VERSION, page="Главная")
breadcrumbs=self._editor.breadcrumbs_by_handle(handle, self),
version=BUILDER_VERSION, page="Главная")
else:
raise HTTPError(404)
EditorHandler.messages = {}
Expand Down

0 comments on commit a277116

Please sign in to comment.