File: WorkspaceWriter.py

package info (click to toggle)
uranium 5.0.0-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,304 kB
  • sloc: python: 31,765; sh: 132; makefile: 12
file content (12 lines) | stat: -rw-r--r-- 488 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
# Copyright (c) 2016 Ultimaker B.V.
# Uranium is released under the terms of the LGPLv3 or higher.

from UM.FileHandler.FileWriter import FileWriter


class WorkspaceWriter(FileWriter):
    def __init__(self, add_to_recent_files: bool = True) -> None:
        super().__init__(add_to_recent_files)

    def write(self, stream, node, mode = FileWriter.OutputMode.BinaryMode):
        raise NotImplementedError("WorkspaceWriter plugin was not correctly implemented, no write was specified")