server/utils.py
branchtls-sprint
changeset 1134 f885df228fc0
parent 0 b97547f5f1fa
child 1138 22f634977c95
equal deleted inserted replaced
1133:8a409ea0c9ec 1134:f885df228fc0
     1 """Some utilities for the CubicWeb server.
     1 """Some utilities for the CubicWeb server.
     2 
     2 
     3 :organization: Logilab
     3 :organization: Logilab
     4 :copyright: 2001-2008 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
     4 :copyright: 2001-2009 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
     5 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
     5 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
     6 """
     6 """
     7 __docformat__ = "restructuredtext en"
     7 __docformat__ = "restructuredtext en"
     8 
     8 
     9 import sys
     9 import sys
   126         Thread.start(self)
   126         Thread.start(self)
   127 
   127 
   128     @property
   128     @property
   129     def name(self):
   129     def name(self):
   130         return '%s(%s)' % (self._name, Thread.getName(self))
   130         return '%s(%s)' % (self._name, Thread.getName(self))
   131 
       
   132 
       
   133 from logilab.common.deprecation import class_moved
       
   134 from cubicweb.server import pool
       
   135 Operation = class_moved(pool.Operation)
       
   136 PreCommitOperation = class_moved(pool.PreCommitOperation)
       
   137 LateOperation = class_moved(pool.LateOperation)
       
   138 SingleLastOperation = class_moved(pool.SingleLastOperation)