|
@@ -161,14 +161,14 @@ class ContentApi(object):
|
161
|
161
|
self._show_deleted = previous_show_deleted
|
162
|
162
|
self._show_temporary = previous_show_temporary
|
163
|
163
|
|
164
|
|
- def get_content_in_context(self, content: Content):
|
|
164
|
+ def get_content_in_context(self, content: Content) -> ContentInContext:
|
165
|
165
|
return ContentInContext(content, self._session, self._config)
|
166
|
166
|
|
167
|
|
- def get_revision_in_context(self, revision: ContentRevisionRO):
|
|
167
|
+ def get_revision_in_context(self, revision: ContentRevisionRO) -> RevisionInContext: # nopep8
|
168
|
168
|
# TODO - G.M - 2018-06-173 - create revision in context object
|
169
|
169
|
return RevisionInContext(revision, self._session, self._config)
|
170
|
170
|
|
171
|
|
- def get_revision_join(self) -> sqlalchemy.sql.elements.BooleanClauseList:
|
|
171
|
+ def _get_revision_join(self) -> sqlalchemy.sql.elements.BooleanClauseList:
|
172
|
172
|
"""
|
173
|
173
|
Return the Content/ContentRevision query join condition
|
174
|
174
|
:return: Content/ContentRevision query join condition
|
|
@@ -187,7 +187,7 @@ class ContentApi(object):
|
187
|
187
|
:return: Content/ContentRevision Query
|
188
|
188
|
"""
|
189
|
189
|
return self._session.query(Content)\
|
190
|
|
- .join(ContentRevisionRO, self.get_revision_join())
|
|
190
|
+ .join(ContentRevisionRO, self._get_revision_join())
|
191
|
191
|
|
192
|
192
|
@classmethod
|
193
|
193
|
def sort_tree_items(
|