products/CPSonFive.old

changeset 28:77ccb3b112a6

Removed deprecation warnings.
author fguillaume
date Tue, 27 Dec 2005 17:34:29 +0000
parents 0e5c9457cfa9
children 69c2e69e46cd
files __init__.py
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line diff
     1.1 --- a/__init__.py
     1.2 +++ b/__init__.py
     1.3 @@ -74,7 +74,10 @@
     1.4  from zope.app.form.interfaces import WidgetsError
     1.5  from zope.app.form.utility import setUpEditWidgets, applyWidgetsChanges
     1.6  from zope.app.event.objectevent import ObjectModifiedEvent
     1.7 -from zope.app.i18n import ZopeMessageIDFactory as _
     1.8 +try:
     1.9 +    from zope.app.i18n import ZopeMessageFactory as _
    1.10 +except:
    1.11 +    from zope.app.i18n import ZopeMessageIDFactory as _
    1.12  import transaction, datetime
    1.13  
    1.14  def EditViewUpdate(self):
    1.15 @@ -130,4 +133,4 @@
    1.16      
    1.17      # Five monkey
    1.18      EditView.update = EditViewUpdate
    1.19 -    
    1.20 \ No newline at end of file
    1.21 +