Thrift: Support for explicit Python module declaration.
authorDavid Reiss <dreiss@apache.org>
Thu, 30 Aug 2007 00:58:43 +0000 (00:58 +0000)
committerDavid Reiss <dreiss@apache.org>
Thu, 30 Aug 2007 00:58:43 +0000 (00:58 +0000)
commitc6fc329a4040f9945576bc7007ab8df44d112635
tree311a7018393e215f97320df6211dae227feb1afd
parentaea19c9d65a7a70770fbcc25a81579575382c40d
Thrift: Support for explicit Python module declaration.

Summary:
Previously, Thrift used the name of the .thrift file as the python module name.
This wasn't very flexible.  Now the python module can be explicitly declared.
Also, there was no need for t_py_generator to inherit from t_oop_generator.

Reviewed By: mcslee

Test Plan:
cd test/py/explicit_module
./runtest.sh

Revert Plan: ok

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665234 13f79535-47bb-0310-9956-ffa450edef68
compiler/cpp/src/generate/t_py_generator.cc
compiler/cpp/src/generate/t_py_generator.h
compiler/cpp/src/parse/t_program.h
compiler/cpp/src/thriftl.ll
compiler/cpp/src/thrifty.yy
test/py/explicit_module/runtest.sh [new file with mode: 0755]
test/py/explicit_module/test1.thrift [new file with mode: 0644]
test/py/explicit_module/test2.thrift [new file with mode: 0644]
thrift.el
thrift.vim