Refactor out edoptions property from DatabaseData.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
This commit is contained in:
parent
1af520e209
commit
4f8e04930b
2 changed files with 1 additions and 4 deletions
|
|
@ -116,9 +116,6 @@ class DatabaseData(metaclass=Singleton):
|
|||
self._database = None
|
||||
self.keys = None
|
||||
self.views = []
|
||||
@property
|
||||
def edoptions(self):
|
||||
return self.schema().options("editor")
|
||||
def schema(self):
|
||||
return self.database().schema()
|
||||
@property
|
||||
|
|
|
|||
2
newfol
2
newfol
|
|
@ -723,7 +723,7 @@ class RecordListView(ListView):
|
|||
else:
|
||||
recvals.append(rec.fields[field])
|
||||
items.append(filemanip.Record(recvals))
|
||||
if dbd.edoptions["blank-lines"]:
|
||||
if dbd.database().schema().options("editor", "blank-lines"):
|
||||
items.append(filemanip.Record([]))
|
||||
self._display_in_editor(items, True)
|
||||
def _render_in_editor_rw(self, title, recs, content):
|
||||
|
|
|
|||
Loading…
Reference in a new issue