diff options
| author | Florent Xicluna <florent.xicluna@gmail.com> | 2012-01-16 19:33:28 +0100 |
|---|---|---|
| committer | Florent Xicluna <florent.xicluna@gmail.com> | 2012-01-16 19:33:28 +0100 |
| commit | 4d208734ec79a5d2fc8e9a3c4507c517d19fb8e2 (patch) | |
| tree | fbd5f42fc632f1a419d64d9d98980f81f4475bc4 /addons | |
| parent | 2606558efada1cd5f7ba6cb97e5c0895263b55b2 (diff) | |
[FIX] missing imports and typo in __all__.
bzr revid: florent.xicluna@gmail.com-20120116183328-m9isnoipj8taeke3
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/web/__init__.py | 1 | ||||
| -rw-r--r-- | addons/web/common/nonliterals.py | 2 | ||||
| -rw-r--r-- | addons/web/common/xml2json.py | 3 |
3 files changed, 4 insertions, 2 deletions
diff --git a/addons/web/__init__.py b/addons/web/__init__.py index b09c8c213bc..36dead8ab74 100644 --- a/addons/web/__init__.py +++ b/addons/web/__init__.py @@ -1,7 +1,6 @@ import common import controllers import logging -import optparse _logger = logging.getLogger(__name__) diff --git a/addons/web/common/nonliterals.py b/addons/web/common/nonliterals.py index f6e81894a4c..0f5248edf33 100644 --- a/addons/web/common/nonliterals.py +++ b/addons/web/common/nonliterals.py @@ -8,7 +8,7 @@ import binascii import hashlib import simplejson.encoder -__all__ = ['Domain', 'Context', 'NonLiteralEncoder, non_literal_decoder', 'CompoundDomain', 'CompoundContext'] +__all__ = ['Domain', 'Context', 'NonLiteralEncoder', 'non_literal_decoder', 'CompoundDomain', 'CompoundContext'] #: 48 bits should be sufficient to have almost no chance of collision #: with a million hashes, according to hg@67081329d49a diff --git a/addons/web/common/xml2json.py b/addons/web/common/xml2json.py index 1f2e74691b9..d67d78480d4 100644 --- a/addons/web/common/xml2json.py +++ b/addons/web/common/xml2json.py @@ -3,6 +3,9 @@ # New BSD Licensed # # URL: http://code.google.com/p/xml2json-direct/ +import simplejson +from xml.etree import ElementTree + class Xml2Json(object): @staticmethod |
