Esempio n. 1
0
 def container_traits( self ):
     """reference to :class:`container_traits_impl_t` or None"""
     if self._container_traits_set == False:
         import container_traits #prevent cyclic dependencies
         self._container_traits_set = True
         self._container_traits = container_traits.find_container_traits( self )
     return self._container_traits
 def container_traits( self ):
     """reference to L{container traits<container_traits.py>} or None"""
     if self._container_traits_set == False:
         import container_traits #prevent cyclic dependencies
         self._container_traits_set = True
         self._container_traits = container_traits.find_container_traits( self )            
     return self._container_traits
Esempio n. 3
0
 def container_traits( self ):
     """reference to L{container traits<container_traits.py>} or None"""
     if self._container_traits_set == False:
         import container_traits #prevent cyclic dependencies
         self._container_traits_set = True
         self._container_traits = container_traits.find_container_traits( self )            
     return self._container_traits
Esempio n. 4
0
 def container_traits(self):
     """reference to :class:`container_traits_impl_t` or None"""
     if self._container_traits_set == False:
         import container_traits  #prevent cyclic dependencies
         self._container_traits_set = True
         self._container_traits = container_traits.find_container_traits(
             self)
     return self._container_traits
Esempio n. 5
0
def get_partial_name(name):
    import templates
    import container_traits  #prevent cyclic dependencies
    ct = container_traits.find_container_traits(name)
    if ct:
        return ct.remove_defaults(name)
    elif templates.is_instantiation(name):
        tmpl_name, args = templates.split(name)
        for i, arg_name in enumerate(args):
            args[i] = get_partial_name(arg_name.strip())
        return templates.join(tmpl_name, args)
    else:
        return name
Esempio n. 6
0
def get_partial_name( name ):
    import templates
    import container_traits #prevent cyclic dependencies
    ct = container_traits.find_container_traits( name )
    if ct:
        return ct.remove_defaults( name )
    elif templates.is_instantiation( name ):
        tmpl_name, args = templates.split( name )
        for i, arg_name in enumerate( args ):
            args[i] = get_partial_name( arg_name.strip() )
        return templates.join( tmpl_name, args )
    else:
        return name