server/sources/native.py
changeset 8694 d901c36bcfce
parent 8625 7ee0752178e5
child 8695 358d8bed9626
equal deleted inserted replaced
8693:a6ca96ec8693 8694:d901c36bcfce
    21 * extid (aka external id, the primary key of an entity in the external source
    21 * extid (aka external id, the primary key of an entity in the external source
    22   from which it comes from) are stored in a varchar column encoded as a base64
    22   from which it comes from) are stored in a varchar column encoded as a base64
    23   string. This is because it should actually be Bytes but we want an index on
    23   string. This is because it should actually be Bytes but we want an index on
    24   it for fast querying.
    24   it for fast querying.
    25 """
    25 """
    26 
       
    27 from __future__ import with_statement
       
    28 
       
    29 __docformat__ = "restructuredtext en"
    26 __docformat__ = "restructuredtext en"
    30 
    27 
    31 try:
    28 try:
    32     from cPickle import loads, dumps
    29     from cPickle import loads, dumps
    33     import cPickle as pickle
    30     import cPickle as pickle