def render_current_document_version(self, document): return document_mf(u"Current version: ${version}", mapping={ 'version': document.getObject().get_current_version_id( missing_as_zero=True) })
def trash_warning(self): if ITrashed.providedBy(self.context): return document_mf( u'warning_trashed', default=u'This document is trashed.', )
def trash_warning(self): if self.trashed: return document_mf( u'warning_trashed', default=u'This document is trashed.', )
def render_current_document_version(self, document): return document_mf( u"Current version: ${version}", mapping={'version': document.getObject().get_current_version()})
def render_submitted_version(self, submitted_document): return document_mf( u"Submitted version: ${version}", mapping={'version': submitted_document.submitted_version})
def render_current_document_version(self, document): return document_mf( u"Current version: ${version}", mapping={'version': document.getObject().get_current_version_id( missing_as_zero=True)})
def trash_warning(self): if ITrashed.providedBy(self.context): return document_mf( u'warning_trashed', default=u'This document is trashed.',)
def trash_warning(self): if self.trashed: return document_mf( u'warning_trashed', default=u'This document is trashed.',)