Refactor out edoptions property from DatabaseData.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
This commit is contained in:
brian m. carlson 2014-01-24 05:47:41 +00:00
parent 1af520e209
commit 4f8e04930b
No known key found for this signature in database
GPG key ID: BF535D811F52F68B
2 changed files with 1 additions and 4 deletions

View file

@ -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
View file

@ -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):