Wednesday, April 27, 2016

#1026 - Back End Implementation

The settings.py file in the api folder calls the set and get functions in the settings.py file in the octoprint folder to write and retrieve the new settings data in the back end in the form of dictionaries in the settings.py file in the octoprint folder. This is the standard method OctoPrint uses to store and get their settings data so this is what we used to create the auto-uppercase blacklist:

Calling the set function on the blacklist ...


Calling the get function on the blacklist ...

























The back end dictionary for the settings data ...






















The only default command for the autoUppercaseBlacklist is M117. This command is used for sending dialog to the console. Putting this command in the uppercase blacklist ensures that the dialog proceeding the command is not uppercased.

No comments:

Post a Comment