Пример #1
0
    def as_cfacet ( self, original_facet ):
        """ Returns the low-level C-based facet for this FacetValue.
        """
        notifiers = original_facet._notifiers( 0 )

        if self._cfacet is not None:
            if (notifiers is None) or (len( notifiers ) == 0):
                return self._cfacet

            facet = CFacet( 0 )
            facet.clone( self._cfacet )
        else:
            facet = self._as_cfacet( original_facet )

        if ((facet     is not None) and
            (notifiers is not None) and
            (len( notifiers ) > 0)):
            facet._notifiers( 1 ).extend( notifiers )

        return facet