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

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

src/d/j/django-lfs-0.7.7/lfs/manage/views/lfs_portlets.py   django-lfs(Download)
        None (as this is not called from outside)
    """
    for i, pa in enumerate(PortletAssignment.objects.filter(content_type=pa.content_type, content_id=pa.content_id, slot=pa.slot)):
        pa.position = (i + 1) * 10
        pa.save()

src/d/j/django-lfs-HEAD/lfs/manage/views/lfs_portlets.py   django-lfs(Download)
        None (as this is not called from outside)
    """
    for i, pa in enumerate(PortletAssignment.objects.filter(content_type=pa.content_type, content_id=pa.content_id, slot=pa.slot)):
        pa.position = (i + 1) * 10
        pa.save()

src/d/j/django-portlets-1.1.1/portlets/utils.py   django-portlets(Download)
        temp = []
        for pa in PortletAssignment.objects.filter(
            slot=slot, content_id=obj.id, content_type=ct.id):
            has_portlets = True
 

src/d/j/django-lfc-1.0.5/lfc/manage/views.py   django-lfc(Download)
 
        # Delete portlets stuff
        for pa in PortletAssignment.objects.filter(content_id=obj.id, content_type=ctype):
            pa.portlet.delete()
            pa.delete()
def _copy_portlets(source_obj, target_obj):
    """Copies all portlets from source_obj to target_obj.
    """
    ct = ContentType.objects.get_for_model(source_obj)
    for pa in PortletAssignment.objects.filter(content_id=source_obj.id, content_type=ct):