Example #1
0
 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)
                        })
Example #2
0
 def trash_warning(self):
     if ITrashed.providedBy(self.context):
         return document_mf(
             u'warning_trashed',
             default=u'This document is trashed.',
         )
Example #3
0
 def trash_warning(self):
     if self.trashed:
         return document_mf(
             u'warning_trashed',
             default=u'This document is trashed.',
         )
Example #4
0
 def render_current_document_version(self, document):
     return document_mf(
         u"Current version: ${version}",
         mapping={'version': document.getObject().get_current_version()})
Example #5
0
 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()})
 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)})
Example #9
0
 def trash_warning(self):
     if ITrashed.providedBy(self.context):
         return document_mf(
             u'warning_trashed', default=u'This document is trashed.',)
Example #10
0
 def trash_warning(self):
     if self.trashed:
         return document_mf(
             u'warning_trashed', default=u'This document is trashed.',)