Rename machines_with_machine_quality to machinesWithMachineQuality

As per the code style conventions. Sorry, I'm used to other conventions in one of my own projects.

Contributes to issue CURA-844.
This commit is contained in:
Ghostkeeper 2016-08-09 13:33:11 +02:00
parent 36f84017cf
commit 1428f67798
No known key found for this signature in database
GPG key ID: 701948C5954A7385
2 changed files with 2 additions and 2 deletions

View file

@ -142,7 +142,7 @@ class Profile:
config.set("metadata", "material", self._material_name) config.set("metadata", "material", self._material_name)
filenames.append(self._filename) filenames.append(self._filename)
configs.append(config) configs.append(config)
elif self._type != "material" and self._machine_type_id in VersionUpgrade21to22.machines_with_machine_quality(): elif self._type != "material" and self._machine_type_id in VersionUpgrade21to22.machinesWithMachineQuality():
#Split this profile into multiple profiles, one for each material. #Split this profile into multiple profiles, one for each material.
for material_id in _new_materials: for material_id in _new_materials:
filenames.append("{profile}_{material}".format(profile = self._filename, material = material_id)) filenames.append("{profile}_{material}".format(profile = self._filename, material = material_id))

View file

@ -92,7 +92,7 @@ class VersionUpgrade21to22(VersionUpgrade):
# #
# \return A set of machine identifiers. # \return A set of machine identifiers.
@staticmethod @staticmethod
def machines_with_machine_quality(self): def machinesWithMachineQuality(self):
return _machines_with_machine_quality return _machines_with_machine_quality
## Converts machine instances from format version 1 to version 2. ## Converts machine instances from format version 1 to version 2.