1 # copyright 2003-2015 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
1 # copyright 2003-2016 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr |
2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr |
3 # |
3 # |
4 # This file is part of CubicWeb. |
4 # This file is part of CubicWeb. |
5 # |
5 # |
6 # CubicWeb is free software: you can redistribute it and/or modify it under the |
6 # CubicWeb is free software: you can redistribute it and/or modify it under the |
14 # details. |
14 # details. |
15 # |
15 # |
16 # You should have received a copy of the GNU Lesser General Public License along |
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/>. |
17 # with CubicWeb. If not, see <http://www.gnu.org/licenses/>. |
18 """Postgres specific store""" |
18 """Postgres specific store""" |
|
19 |
19 from __future__ import print_function |
20 from __future__ import print_function |
20 |
21 |
21 import warnings |
22 import warnings |
22 import os.path as osp |
23 import os.path as osp |
23 from io import StringIO |
24 from io import StringIO |
24 from time import asctime |
25 from time import asctime |
25 from datetime import date, datetime, time |
26 from datetime import date, datetime, time |
26 from collections import defaultdict |
27 from collections import defaultdict |
27 from base64 import b64encode |
28 |
28 |
29 from six import string_types, integer_types, text_type, add_metaclass |
29 from six import (string_types, integer_types, text_type, binary_type, |
|
30 add_metaclass) |
|
31 from six.moves import cPickle as pickle, range |
30 from six.moves import cPickle as pickle, range |
32 |
31 |
33 from logilab.common.deprecation import class_deprecated |
32 from logilab.common.deprecation import class_deprecated |
34 |
33 |
35 from cubicweb.utils import make_uid |
34 from cubicweb.utils import make_uid |