10 Commits

Author SHA1 Message Date
Chang Bo Guo
db9e8d3c61 Unify different names between Python2 and Python3
Some modules have different names in Python2 and Python3. This patch
make them compatible with Python 3.

 * Use six.moves.filter instead of itertools.ifilter() in Python 2.
 * Use common.py3kcompat.urlutils instead of urllib and urlparse.

Change-Id: Ia27ebf6057d91d0e129fbe90f995cfdaa89efa8a
2013-12-09 02:19:52 -08:00
Chang Bo Guo
c98d7edef8 Decouple from Oslo uuidutils module
uuidutils module will be deprecated in Icehouse, So need replace it.
This patch uses str(uuid.uuid4()) instead of method generate_uuid.

Closes-Bug: #1253497
Change-Id: I35815544429c489096b4db3fa79a649f4cd9459f
2013-11-22 19:59:03 -08:00
Mark McLoughlin
4043506a23 Add missing gettextutils
We don't need this in oslo.messaging itself, but excutils and sslutils
do use it.

Change-Id: Ib35caa6616aab7be1a7f872b2073f7b9f606b258
2013-07-27 15:49:48 +01:00
Mark McLoughlin
8ccb5741d2 Remove use of gettextutils
We don't have any infrastructure for localizations in oslo.messaging
so using this is pointless right now. I'm also generally not convinced
we want to translate any of the strings in this library anyway.

For now, just add a dummy _() function. We can can unmark the strings
later.

Change-Id: I1b6a698ee5558c50dc5eafee1f5f05ee2570435e
2013-07-24 08:15:35 +01:00
Mark McLoughlin
c891e7ee24 Remove use of openstack.common.local
This means we no longer set the request context for the current thread
so that it can be used in logging.

We do need to add this back later, but it might be in the form of a
get_current_context() method.

Change-Id: I3f08a85e2019affddec829e2ea008b5c10707660
2013-07-24 08:15:35 +01:00
Mark McLoughlin
1a7e51eb4a Use stdlib logging
I guess this loses us automatic logging of details from request context.

Change-Id: I7413f025231c14b7cbdc9e90099407bc6c7943e1
2013-07-24 08:15:35 +01:00
Mark McLoughlin
51be674f30 Import some needed modules from oslo-incubator
Some additional modules from oslo-incubator are required by the driver
code. Don't fret, some of these will be removed in subsequent patches!

Change-Id: I3674bfbc4b1c93afc746b84fbbf8859456cbcb3c
2013-07-23 18:34:42 +01:00
Mark McLoughlin
43ab36d1a1 Make executor threads more robust
See bug #1189711

Prevent the executor thread getting killed by exceptions.

Change-Id: I0787fa619a6a8a35a303627f8ce119c93f2c8765
2013-07-23 18:34:42 +01:00
Mark McLoughlin
e67f409b87 Don't use common logging
It appears we don't actually need this - we don't, for example, use any
of the special formatting supported by ContextAdaptor.
2013-06-16 15:24:41 +01:00
Mark McLoughlin
be649d1d74 Import stuff from oslo-incubator 2013-06-15 08:43:54 +01:00