/[Apache-SVN]
ViewVC logotype

Revision 665236


Jump to revision: Previous Next
Author: dreiss
Date: Thu Aug 30 23:07:45 2007 UTC (17 years, 2 months ago)
Changed paths: 4
Log Message:
Thrift: Handle absence of fastbinary.so

Summary:
- Wrap import of fastbinary in a try/catch, setting it to None if it fails.
- Don't try to fastbinary.encode/decode if fastbinary is None.
- Always generate thrift_spec, even if it is None.
- Don't try to fastbinary.encode/decode if thrift_spec is None.

Reviewed By: mcslee

Test Plan:
test/py/Test{Client,Server}.py
Manually delete my fastbinary.so, they worked fine.
Changed them to use Accelerated protocol.  They still worked fine because
the test falls through to the normal generated code.
Installed fastbinary.so, everything worked fine (eventually).

Revert Plan: ok


Changed paths

Path Details
Directoryincubator/thrift/trunk/compiler/cpp/src/generate/t_py_generator.cc modified , text changed
Directoryincubator/thrift/trunk/compiler/cpp/src/generate/t_py_generator.h modified , text changed
Directoryincubator/thrift/trunk/lib/py/src/protocol/TBinaryProtocol.py modified , text changed
Directoryincubator/thrift/trunk/lib/py/src/reflection/limited/ttypes.py modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26