branch | stable |
changeset 5377 | 84d14ddfae13 |
parent 4669 | 2a77a0d9075f |
child 5389 | 809d3b5b3d31 |
--- a/web/views/editforms.py Thu Apr 22 19:37:56 2010 +0000 +++ b/web/views/editforms.py Thu Apr 22 19:48:04 2010 +0000 @@ -11,7 +11,10 @@ from copy import copy -from simplejson import dumps +try: + from json import dumps +except ImportError: + from simplejson import dumps from logilab.mtconverter import xml_escape from logilab.common.decorators import cached