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

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

src/d/j/django-lfs-0.7.7/lfs/manage/views/lfs_portlets.py   django-lfs(Download)
            try:
                PortletBlocking.objects.create(
                    slot_id=slot.id, content_type_id=object_type_id, content_id=object_id)
            except IntegrityError:
                pass

src/d/j/django-lfc-1.0.5/lfc/manage/views.py   django-lfc(Download)
            try:
                PortletBlocking.objects.create(
                    slot_id=slot.id, content_type_id=object_type_id, content_id=object_id)
            except IntegrityError:
                pass

src/l/f/lfs-HEAD/manage/views/lfs_portlets.py   lfs(Download)
            try:
                PortletBlocking.objects.create(
                    slot_id=slot.id, content_type_id=object_type_id, content_id=object_id)
            except IntegrityError:
                pass

src/d/j/django-portlets-1.1.1/portlets/tests.py   django-portlets(Download)
 
        portlet_blocking = PortletBlocking.objects.create(
            slot = slot,
            content = page,
        )
 
        # Blocking the left slot of the page
        PortletBlocking.objects.create(slot=self.left_slot, content=self.page)
 
        result = portlets.utils.is_blocked(self.page, self.left_slot)
 
        # Blocking the left right of the page
        PortletBlocking.objects.create(slot=self.right_slot, content=self.page)
 
        result = portlets.utils.is_blocked(self.page, self.left_slot)