Update of /cvsroot/pygccxml/source/pyplusplus/decl_wrappers
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15169/pyplusplus/decl_wrappers
Modified Files:
call_policies.py
Log Message:
fixing UI & wizard
adding __str__ to call policies
Index: call_policies.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/decl_wrappers/call_policies.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** call_policies.py 28 Feb 2006 07:31:33 -0000 1.1
--- call_policies.py 22 Mar 2006 08:05:35 -0000 1.2
***************
*** 30,34 ****
def _create_impl(self, function_creator ):
return algorithm.create_identifier( function_creator, '::boost::python::default_call_policies' )
!
def default_call_policies():
return default_t()
--- 30,37 ----
def _create_impl(self, function_creator ):
return algorithm.create_identifier( function_creator, '::boost::python::default_call_policies' )
!
! def __str__(self):
! return 'default_call_policies'
!
def default_call_policies():
return default_t()
***************
*** 59,62 ****
--- 62,71 ----
return declarations.templates.join( name, args )
+ def __str__(self):
+ name = self._get_name(None).replace('::boost::python::', '' )
+ args = map( lambda text: text.replace( '::boost::python::', '' )
+ , self._get_args( None ) )
+ return declarations.templates.join( name, args )
+
class return_argument_t( compound_policy_t ):
def __init__( self, position=1, base=None):
***************
*** 161,166 ****
def _get_args(self, function_creator):
! rcg = algorithm.create_identifier( function_creator, self.result_converter_generator )
! return [ rcg ]
copy_const_reference = '::boost::python::copy_const_reference'
--- 170,178 ----
def _get_args(self, function_creator):
! if function_creator:
! rcg = algorithm.create_identifier( function_creator, self.result_converter_generator )
! return [ rcg ]
! else:
! return [self.result_converter_generator]
copy_const_reference = '::boost::python::copy_const_reference'
|