def render_publicDocumentCount(self, context, data): querier = IQuerier(context) return querier.getDocumentCount()[Document.PUBLISHED_STATE]
def render_privateDocumentCount(self, context, data): querier = IQuerier(context) return querier.getDocumentCount()[Document.PRIVATE_STATE]