@@ -61,28 +61,29 @@ class View:
61
61
- links from this view to other views
62
62
"""
63
63
64
- def __init__ (self , path : Path , store : Store , sg_name : Optional [str ] = None ):
64
+ def __init__ (self , path : Path , store : Store , published_name : Optional [str ] = None ):
65
65
"""
66
66
:param path: the root path that all view related data should be stored under
67
67
:param store: the Store object that backs this view
68
- :param sg_name : the name of the SplitgillDatabase this view populates
68
+ :param published_name : the name of the SplitgillDatabase this view populates
69
69
"""
70
70
self .path = path
71
71
self .store = store
72
- self .sg_name = sg_name
72
+ self .published_name = published_name
73
73
self .name = path .name
74
74
self .changes = ChangeQueue (self .path / "changes" )
75
75
# a list of links which need to be updated when records in this view change
76
76
self .dependants : List [Link ] = []
77
77
78
78
@property
79
- def has_database (self ) -> bool :
79
+ def is_published (self ) -> bool :
80
80
"""
81
- Returns whether this view directly feeds a Splitgill database.
81
+ Returns whether this view directly feeds a Splitgill database, i.e. is
82
+ "published" to the Portal.
82
83
83
84
:return: True if a Splitgill database should exist for this view, False if not
84
85
"""
85
- return self .sg_name is not None
86
+ return self .published_name is not None
86
87
87
88
def add_dependant (self , link : "Link" ):
88
89
"""
0 commit comments