Remove titleFormat from project XML and rename mock test file

This commit is contained in:
Veronica Berglyd Olsen
2023-06-03 18:13:02 +02:00
parent db8140418e
commit 0704812376
24 changed files with 30 additions and 91 deletions
-18
View File
@@ -170,11 +170,6 @@ class NWProjectData:
"""Return the autoreplace dictionary."""
return self._autoReplace
@property
def titleFormat(self):
"""Delete"""
return self._titleFormat
@property
def itemStatus(self) -> NWStatus:
"""Return the status settings object."""
@@ -209,10 +204,6 @@ class NWProjectData:
"""Retrieve the last used handle for a given component."""
return self._lastHandle.get(component, None)
def getTitleFormat(self, kind):
"""Retrieve the title format string for a given kind of header."""
return self._titleFormat.get(kind, "%title%")
##
# Setters
##
@@ -337,13 +328,4 @@ class NWProjectData:
self.theProject.setProjectChanged(True)
return
def setTitleFormat(self, value):
"""Set the title formats."""
if isinstance(value, dict):
for key, entry in value.items():
if key in self._titleFormat and isinstance(entry, str):
self._titleFormat[key] = simplified(entry)
self.theProject.setProjectChanged(True)
return
# END Class NWProjectData