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

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)
D.items() -> list of D's (key, value) pairs, as 2-tuples

src/d/j/django-generic-notifications-0.2.2/notifications/views.py   django-generic-notifications(Download)
 
        notification_types = {}
        for class_name, type_class in NotificationEngine._types.items():
            notification_types[class_name] = {
                'type_class': type_class,
    def post(self, request, **kwargs):
        DisabledNotificationsTypeBackend.objects.filter(user=request.user).delete()
 
        for type_name, type_class in NotificationEngine._types.items():
            allowed_backends = type_class().allowed_backends

src/d/j/django-generic-notifications-HEAD/notifications/views.py   django-generic-notifications(Download)
 
        notification_types = {}
        for class_name, type_class in NotificationEngine._types.items():
            notification_types[class_name] = {
                'type_class': type_class,
    def post(self, request, **kwargs):
        DisabledNotificationsTypeBackend.objects.filter(user=request.user).delete()
 
        for type_name, type_class in NotificationEngine._types.items():
            allowed_backends = type_class().allowed_backends