Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNino van Hooff <ninovanhooff@gmail.com>2020-05-08 16:43:12 +0300
committerNino van Hooff <ninovanhooff@gmail.com>2020-05-08 16:43:12 +0300
commit54d2fe95d15e43c53261cdccf11f0f6fe81c1a2d (patch)
tree2df6944643d1cca16dc6abbb6d9ea977d778e1c8 /plugins/CuraProfileWriter
parent176919eee0ab397f0b9c151551dbef0b5fbb046e (diff)
Convert doxygen to rst for CuraProfileReader/Writer
Diffstat (limited to 'plugins/CuraProfileWriter')
-rw-r--r--plugins/CuraProfileWriter/CuraProfileWriter.py17
1 files changed, 10 insertions, 7 deletions
diff --git a/plugins/CuraProfileWriter/CuraProfileWriter.py b/plugins/CuraProfileWriter/CuraProfileWriter.py
index 78f0b078d9..6643bd8d1f 100644
--- a/plugins/CuraProfileWriter/CuraProfileWriter.py
+++ b/plugins/CuraProfileWriter/CuraProfileWriter.py
@@ -6,15 +6,18 @@ from UM.Logger import Logger
from cura.ReaderWriters.ProfileWriter import ProfileWriter
import zipfile
-## Writes profiles to Cura's own profile format with config files.
class CuraProfileWriter(ProfileWriter):
- ## Writes a profile to the specified file path.
- #
- # \param path \type{string} The file to output to.
- # \param profiles \type{Profile} \type{List} The profile(s) to write to that file.
- # \return \code True \endcode if the writing was successful, or \code
- # False \endcode if it wasn't.
+ """Writes profiles to Cura's own profile format with config files."""
+
def write(self, path, profiles):
+ """Writes a profile to the specified file path.
+
+ :param path: :type{string} The file to output to.
+ :param profiles: :type{Profile} :type{List} The profile(s) to write to that file.
+ :return: True if the writing was successful, or
+ False if it wasn't.
+ """
+
if type(profiles) != list:
profiles = [profiles]