web/__init__.py
brancholdstable
changeset 5422 0865e1e90674
parent 5421 8167de96c523
child 5424 8ecbcbff9777
equal deleted inserted replaced
4985:02b52bf9f5f8 5422:0865e1e90674
       
     1 # copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
       
     2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
       
     3 #
       
     4 # This file is part of CubicWeb.
       
     5 #
       
     6 # CubicWeb is free software: you can redistribute it and/or modify it under the
       
     7 # terms of the GNU Lesser General Public License as published by the Free
       
     8 # Software Foundation, either version 2.1 of the License, or (at your option)
       
     9 # any later version.
       
    10 #
       
    11 # logilab-common is distributed in the hope that it will be useful, but WITHOUT
       
    12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
       
    13 # FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
       
    14 # details.
       
    15 #
       
    16 # You should have received a copy of the GNU Lesser General Public License along
       
    17 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
     1 """CubicWeb web client core. You'll need a apache-modpython or twisted
    18 """CubicWeb web client core. You'll need a apache-modpython or twisted
     2 publisher to get a full CubicWeb web application
    19 publisher to get a full CubicWeb web application
     3 
    20 
     4 
    21 
     5 :organization: Logilab
       
     6 :copyright: 2001-2010 LOGILAB S.A. (Paris, FRANCE), license is LGPL v2.
       
     7 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
       
     8 :license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses
       
     9 """
    22 """
    10 __docformat__ = "restructuredtext en"
    23 __docformat__ = "restructuredtext en"
    11 _ = unicode
    24 _ = unicode
    12 
    25 
    13 from simplejson import dumps
    26 import sys
       
    27 if sys.version_info < (2,6):
       
    28     import simplejson as json
       
    29 else:
       
    30     import json
       
    31 
       
    32 dumps = json.dumps
       
    33 
    14 from urllib import quote as urlquote
    34 from urllib import quote as urlquote
    15 
    35 
    16 from logilab.common.deprecation import deprecated
    36 from logilab.common.deprecation import deprecated
    17 
    37 
    18 from cubicweb.web._exceptions import *
    38 from cubicweb.web._exceptions import *