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

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

src/d/j/django-portlets-1.1.1/portlets/__init__.py   django-portlets(Download)
                The slot which is tested. Must be a Slot instance.
        """
        return portlets.utils.has_portlets(self, slot)
 
    def is_blocked(self, slot):

src/d/j/django-lfstheme-0.7.4/lfstheme/templatetags/lfs_theme_tags.py   django-lfstheme(Download)
            has_portlets = cache.get(cache_key)
            if has_portlets is None:
                has_portlets = portlets.utils.has_portlets(object, slot)
                cache.set(cache_key, has_portlets)
 

src/l/f/lfc-theme-1.0/lfc_theme/templatetags/lfc_theme_tags.py   lfc-theme(Download)
 
        for slot in Slot.objects.all():
            context["Slot%s" % slot.name] = portlets.utils.has_portlets(slot, obj)
 
        if context["SlotLeft"] and context["SlotRight"]:

src/d/j/django-portlets-1.1.1/portlets/tests.py   django-portlets(Download)
    def test_has_portlets(self):
        """
        """
        # At the beginning no slot has portlets
        result = portlets.utils.has_portlets(self.page, self.left_slot)
        self.assertEqual(result, False)
 
        result = portlets.utils.has_portlets(self.page, self.right_slot)
            slot=self.left_slot, content=self.page, portlet=self.portlet, position=1)
 
        result = portlets.utils.has_portlets(self.page, self.left_slot)
        self.assertEqual(result, True)
 
        result = portlets.utils.has_portlets(self.page, self.right_slot)
            slot=self.right_slot, content=self.page, portlet=self.portlet, position=1)
 
        result = portlets.utils.has_portlets(self.page, self.left_slot)
        self.assertEqual(result, True)