--- a/web/request.py Fri Apr 23 17:56:01 2010 +0200
+++ b/web/request.py Mon Apr 26 16:31:46 2010 +0200
@@ -1,3 +1,4 @@
+
"""abstract class for http request
:organization: Logilab
@@ -16,11 +17,6 @@
from urlparse import urlsplit
from itertools import count
-try:
- from json import dumps
-except ImportError:
- from simplejson import dumps
-
from rql.utils import rqlvar_maker
from logilab.common.decorators import cached
@@ -33,9 +29,11 @@
from cubicweb.utils import SizeConstrainedList, HTMLHead, make_uid
from cubicweb.view import STRICT_DOCTYPE, TRANSITIONAL_DOCTYPE_NOEXT
from cubicweb.web import (INTERNAL_FIELD_VALUE, LOGGER, NothingToEdit,
- RequestError, StatusResponse)
+ RequestError, StatusResponse, json)
from cubicweb.web.http_headers import Headers
+dumps = json.dumps
+
_MARKER = object()