[Checkins] SVN: zope.mimetype/trunk/src/zope/mimetype/widget.py Sigh. Fix fragile code broken by relying on some non-contractual parts of the superclass. Didn't fix fragility or pattern, just addressed the changes. :-(

Gary Poster gary at zope.com
Sun Apr 30 22:52:48 EDT 2006


Log message for revision 67778:
  Sigh.  Fix fragile code broken by relying on some non-contractual parts of the superclass.   Didn't fix fragility or pattern, just addressed the changes. :-(
  
  Tested only indirectly. :-(
   
  

Changed:
  U   zope.mimetype/trunk/src/zope/mimetype/widget.py

-=-
Modified: zope.mimetype/trunk/src/zope/mimetype/widget.py
===================================================================
--- zope.mimetype/trunk/src/zope/mimetype/widget.py	2006-05-01 02:48:45 UTC (rev 67777)
+++ zope.mimetype/trunk/src/zope/mimetype/widget.py	2006-05-01 02:52:48 UTC (rev 67778)
@@ -29,7 +29,7 @@
         # XXX need a better way to sort in an internationalized context
         sortable = []
         for value in source:
-            t = self.terms.getTerm(value)
+            t = self.vocabulary.terms.getTerm(value)
             title = zope.i18n.translate(t.title, context=request)
             self.displays[value] = title, t.token
             lower = title.lower()



More information about the Checkins mailing list