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

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

src/d/j/django-portlets-1.1.1/portlets/utils.py   django-portlets(Download)
def get_registered_portlets():
    """Returns registered portlet types as dict.
    """
    portlet_types = {}
    for pr in PortletRegistration.objects.all():

src/d/j/django-lfc-1.0.5/lfc/manage/views.py   django-lfc(Download)
        "parent_slots" : parent_slots,
        "parent_for_portlets" : parent_for_portlets,
        "portlet_types" : PortletRegistration.objects.all(),
        "obj" : obj,
        "object_type_id" : ct.id,

src/d/j/django-lfc-1.0.5/lfc/tests/registration_tests.py   django-lfc(Download)
    def test_default_portlets(self):
        """Portlets which have to be registered at least.
        """
        portlets = ["Pages", "Random", "Text", "Navigation"]
        registered_portlets = [p.name for p in PortletRegistration.objects.all()]