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

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

src/d/j/django-lfc-1.0.5/lfc/manage/views.py   django-lfc(Download)
    blocked_slots = request.POST.getlist("block_slot")
 
    for slot in Slot.objects.all():
        if str(slot.id) in blocked_slots:
            try:
                "object_type_id" : object_ct.id,
                "portlet_type" : portlet_type,
                "slots" : Slot.objects.all(),
            }))
        except ContentType.DoesNotExist:
                    "object_type_id" : object_ct.id,
                    "portlet_type" : portlet_type,
                    "slots" : Slot.objects.all(),
                }))
 
 
    slots = []
    for slot in Slot.objects.all():
        slots.append({
            "id" : slot.id,

src/d/j/django-lfs-HEAD/lfs/manage/views/lfs_portlets.py   django-lfs(Download)
                "object_type_id": object_ct.id,
                "portlet_type": portlet_type,
                "slots": Slot.objects.all(),
            }))
        except ContentType.DoesNotExist:
    else:
        slots = []
        for slot in Slot.objects.all():
            slots.append({
                "id": slot.id,

src/d/j/django-lfs-0.7.7/lfs/manage/views/lfs_portlets.py   django-lfs(Download)
    blocked_slots = request.POST.getlist("block_slot")
 
    for slot in Slot.objects.all():
        if str(slot.id) in blocked_slots:
            try:
                "object_type_id": object_ct.id,
                "portlet_type": portlet_type,
                "slots": Slot.objects.all(),
            }))
        except ContentType.DoesNotExist:
    else:
        slots = []
        for slot in Slot.objects.all():
            slots.append({
                "id": slot.id,

src/l/f/lfs-HEAD/manage/views/lfs_portlets.py   lfs(Download)
    blocked_slots = request.POST.getlist("block_slot")
 
    for slot in Slot.objects.all():
        if str(slot.id) in blocked_slots:
            try:
                "object_type_id" : object_ct.id,
                "portlet_type" : portlet_type,
                "slots" : Slot.objects.all(),
            }))
        except ContentType.DoesNotExist:
    if request.method == "GET":
        slots = []
        for slot in Slot.objects.all():
            slots.append({
                "id" : slot.id,

src/d/j/django-portlets-1.1.1/portlets/utils.py   django-portlets(Download)
 
    items = []
    for slot in Slot.objects.all():
        temp = []
        for pa in PortletAssignment.objects.filter(

src/d/j/django-lfstheme-0.7.4/lfstheme/templatetags/lfs_theme_tags.py   django-lfstheme(Download)
        slots = cache.get("slots")
        if slots is None:
            slots = Slot.objects.all()
            cache.set("slots", slots)
 

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

src/d/j/django-lfc-1.0.5/lfc/tests/portlets_tests.py   django-lfc(Download)
        self.assertEqual(len(ps), 0)
 
        ss = Slot.objects.all()
        self.assertEqual(len(ss), 2)        
 
        self.assertEqual(len(ps), 1)
 
        ss = Slot.objects.all()
        self.assertEqual(len(ss), 2)        
 
        self.assertEqual(len(ps), 1)
 
        ss = Slot.objects.all()
        self.assertEqual(len(ss), 2)