[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/container/browser/contents.py make the title show up for things that have IZopeDublinCore adapters but that

Fred L. Drake, Jr. fdrake at gmail.com
Thu May 12 10:55:31 EDT 2005


Log message for revision 30337:
  make the title show up for things that have IZopeDublinCore adapters but that
  are not retitleable by the current user
  (see issue 406 for more: http://www.zope.org/Collectors/Zope3-dev/406)
  

Changed:
  U   Zope3/trunk/src/zope/app/container/browser/contents.py

-=-
Modified: Zope3/trunk/src/zope/app/container/browser/contents.py
===================================================================
--- Zope3/trunk/src/zope/app/container/browser/contents.py	2005-05-12 09:50:58 UTC (rev 30336)
+++ Zope3/trunk/src/zope/app/container/browser/contents.py	2005-05-12 14:55:31 UTC (rev 30337)
@@ -166,7 +166,7 @@
         if dc is not None:
             info['retitleable'] = checkPermission(
                 'zope.app.dublincore.change', dc) and id != retitle_id
-            info['plaintitle'] = 0
+            info['plaintitle'] = not info['retitleable']
 
             title = self.safe_getattr(dc, 'title', None)
             if title:



More information about the Zope3-Checkins mailing list