Did I find the right examples for you? yes no

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

src/o/p/opentrials-HEAD/opentrials/maintenance/middleware.py   opentrials(Download)
from models import MaintenanceWindow
 
class MaintenanceMiddleware(object):
    def process_request(self, request):
        maintenance_window = MaintenanceWindow.active_maintenance()