server/session.py
branchtls-sprint
changeset 1132 96752791c2b6
parent 1016 26387b836099
child 1263 01152fffd593
equal deleted inserted replaced
1131:544609e83317 1132:96752791c2b6
     7 __docformat__ = "restructuredtext en"
     7 __docformat__ = "restructuredtext en"
     8 
     8 
     9 import sys
     9 import sys
    10 import threading
    10 import threading
    11 from time import time
    11 from time import time
    12 from types import NoneType
       
    13 
    12 
    14 from rql.nodes import VariableRef, Function, ETYPE_PYOBJ_MAP, etype_from_pyobj
    13 from rql.nodes import VariableRef, Function, ETYPE_PYOBJ_MAP, etype_from_pyobj
    15 from yams import BASE_TYPES
    14 from yams import BASE_TYPES
    16 
    15 
    17 from cubicweb import RequestSessionMixIn, Binary
    16 from cubicweb import RequestSessionMixIn, Binary
   548     def property_value(self, key):
   547     def property_value(self, key):
   549         if key == 'ui.language':
   548         if key == 'ui.language':
   550             return 'en'
   549             return 'en'
   551         return None
   550         return None
   552 
   551 
   553 _IMANAGER= InternalManager()
   552 _IMANAGER = InternalManager()
   554 
   553 
   555 from logging import getLogger
   554 from logging import getLogger
   556 from cubicweb import set_log_methods
   555 from cubicweb import set_log_methods
   557 set_log_methods(Session, getLogger('cubicweb.session'))
   556 set_log_methods(Session, getLogger('cubicweb.session'))