Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(15)  |  Call(15)  |  Derive(0)  |  Import(0)

src/t/r/traits-4.4.0/traits/trait_handlers.py   traits(Download)
    def _send_trait_items_event(self, name, event, items_event=None):
        """ Send a TraitListEvent to the owning object if there is one.
        """
        object = self.object()
        if object is not None:
        try:
            validate = self.trait.item_trait.handler.validate
            object   = self.object()
            if validate is not None:
                value = validate( object, self.name, value )
        if self_trait.minlen <= (len(self) + delta) <= self_trait.maxlen:
            try:
                object   = self.object()
                name     = self.name
                trait    = self_trait.item_trait
            try:
                validate = trait.item_trait.handler.validate
                object   = self.object()
                if validate is not None:
                    value = validate( object, self.name, value )
            try:
                validate = trait.item_trait.handler.validate
                object   = self.object()
                if validate is not None:
                    value = validate( object, self.name, value )

src/t/r/traits-HEAD/traits/trait_handlers.py   traits(Download)
    def _send_trait_items_event(self, name, event, items_event=None):
        """ Send a TraitListEvent to the owning object if there is one.
        """
        object = self.object()
        if object is not None:
            removed = []
        try:
            object   = self.object()
            validate = self.trait.item_trait.handler.validate
            name     = self.name
            try:
                validate = trait.item_trait.handler.validate
                object   = self.object()
                if validate is not None:
                    value = validate( object, self.name, value )
            try:
                validate = trait.item_trait.handler.validate
                object   = self.object()
                if validate is not None:
                    value = validate( object, self.name, value )
 
        if (trait.minlen <= (len( self ) + len_xlist) <= trait.maxlen):
            object   = self.object()
            name     = self.name
            validate = trait.item_trait.handler.validate