def initial_context(self, request, *args, **kwargs):
        context = super(ZoomableView, self).initial_context(request,
                                                            *args, **kwargs)
        try:
            zoom = int(request.GET['zoom'])
        except (KeyError, __HOLE__):
            zoom = self.default_zoom
        else:
            zoom = min(max(10, zoom), 18)
        context['zoom'] = zoom
        context.update({
            'zoom_controls': True,
        })
        return context
dataset/ETHPy150Open mollyproject/mollyproject/molly/utils/views.py/ZoomableView.initial_context