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

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

src/f/t/ftw.publisher.sender-2.2.0/ftw/publisher/sender/browser/views.py   ftw.publisher.sender(Download)
            return 'PUBLISHING IS DISABLED'
 
        if self.config.locking_enabled():
            self.logger.info('LOCKING IS ENABLED')
        else:
            self.logger.info('LOCKING IS DISABLED')
 
        # lock - check for locking flag
        if self.config.locking_enabled() and not self.get_lock_object().acquire(0):
        except:
            self.logger.removeHandler(logHandler)
            if self.config.locking_enabled(): self.get_lock_object().release()
            # re-raise exception
            raise
 
        # unlock
        if self.config.locking_enabled(): self.get_lock_object().release()
 
        event.notify(QueueExecutedEvent(portal, log))