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

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

src/d/j/django-portlets-1.1.1/portlets/__init__.py   django-portlets(Download)
    def get_slots(self):
        """Returns all slots with all assigned portlets.
        """
        return portlets.utils.is_blocked(self)
 
                instance.
        """
        return portlets.utils.is_blocked(self, slot)
 
    def get_parent_for_portlets(self):

src/d/j/django-portlets-1.1.1/portlets/templatetags/portlets_tags.py   django-portlets(Download)
    while instance:
        # If the portlets are blocked no portlets should be added
        if portlets.utils.is_blocked(instance, slot):
            break
 

src/d/j/django-lfs-0.7.7/lfs/portlet/templatetags/lfs_portlets_tags.py   django-lfs(Download)
        while instance:
            # If the portlets are blocked no portlets should be added
            if portlets.utils.is_blocked(instance, slot):
                break
 

src/d/j/django-lfs-HEAD/lfs/portlet/templatetags/lfs_portlets_tags.py   django-lfs(Download)
        while instance:
            # If the portlets are blocked no portlets should be added
            if portlets.utils.is_blocked(instance, slot):
                break
 

src/l/f/lfs-HEAD/portlet/templatetags/lfs_portlets_tags.py   lfs(Download)
    while instance:
        # If the portlets are blocked no portlets should be added
        if portlets.utils.is_blocked(instance, slot):
            break
 

src/d/j/django-portlets-1.1.1/portlets/tests.py   django-portlets(Download)
            slot=self.right_slot, content=self.page, portlet=self.portlet, position=1)
 
        result = portlets.utils.is_blocked(self.page, self.left_slot)
        self.assertEqual(result, False)
 
        result = portlets.utils.is_blocked(self.page, self.right_slot)
        PortletBlocking.objects.create(slot=self.left_slot, content=self.page)
 
        result = portlets.utils.is_blocked(self.page, self.left_slot)
        self.assertEqual(result, True)
 
        result = portlets.utils.is_blocked(self.page, self.right_slot)
        PortletBlocking.objects.create(slot=self.right_slot, content=self.page)
 
        result = portlets.utils.is_blocked(self.page, self.left_slot)
        self.assertEqual(result, True)