Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

file 30 lines (26 sloc) 1.311 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
diff -ru ../plone.app.iterate-1.2.3-orig/plone/app/iterate/browser/info.py ./plone/app/iterate/browser/info.py
--- ../plone.app.iterate-1.2.3-orig/plone/app/iterate/browser/info.py 2008-11-08 08:54:13.000000000 -0700
+++ ./plone/app/iterate/browser/info.py 2012-02-17 14:41:56.000000000 -0700
@@ -16,7 +16,7 @@
 
 from plone.app.iterate.util import get_storage
 from plone.app.iterate.interfaces import keys
-
+from plone.app.iterate.permissions import CheckoutPermission
 from plone.app.iterate.relation import WorkingCopyRelation
 
 from plone.memoize.instance import memoize
@@ -41,7 +41,7 @@
     def created( self ):
         time = self.properties.get( keys.checkout_time, DateTime() )
         util = getToolByName(self.context, 'translation_service')
- return util.ulocalized_time(time, None, self.context, domain='plonelocales')
+ return util.ulocalized_time(time, True, self.context, domain='plonelocales')
 
     @memoize
     def creator( self ):
@@ -80,7 +80,7 @@
 
     def render(self):
         if self.working_copy() is not None and \
- getSecurityManager().checkPermission(ModifyPortalContent, self.context):
+ getSecurityManager().checkPermission(CheckoutPermission, self.context):
             return self.template()
         else:
             return ""
Something went wrong with that request. Please try again.