~gjc/pybindgen/new-waf

« back to all changes in this revision

Viewing changes to tests/foomodulegen_common.py

  • Committer: Gustavo J. A. M. Carneiro
  • Date: 2008-11-17 17:38:14 UTC
  • mfrom: (525.1.78 trunk)
  • Revision ID: gjc@gnome.org-20081117173814-6k0ejk3ovblbhla8
merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
import re
5
5
 
6
6
import pybindgen
 
7
import pybindgen.settings
7
8
from pybindgen.typehandlers import base as typehandlers
8
9
from pybindgen import ReturnValue, Parameter, Module, Function, FileCodeSink
9
10
from pybindgen import CppMethod, CppConstructor, CppClass, Enum
31
32
        else:
32
33
            raise AssertionError
33
34
        handler = type_handler(*args, **kwargs)
34
 
        handler.set_tranformation(self, self.get_untransformed_name(args[0]))
 
35
        handler.set_transformation(self, self.get_untransformed_name(args[0]))
35
36
        return handler
36
37
 
37
38
    def untransform(self, type_handler, declarations, code_block, expression):
51
52
 
52
53
 
53
54
def customize_module(module):
 
55
    pybindgen.settings.wrapper_registry = pybindgen.settings.StdMapWrapperRegistry
 
56
 
54
57
    wrapper_body = '''
55
58
static PyObject *
56
59
_wrap_foofunction_that_takes_foo_from_string(PyObject * PYBINDGEN_UNUSED(dummy), PyObject *args,