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

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

src/d/j/django-notifier-0.7/notifier/shortcuts.py   django-notifier(Download)
        n = Notification.objects.get(name=name)
    except Notification.DoesNotExist:
        n = Notification.objects.create(name=name, display_name=display_name,
            public=public)
        n.permissions.add(*permissions)

src/d/j/django-notifier-HEAD/notifier/shortcuts.py   django-notifier(Download)
        n = Notification.objects.get(name=name)
    except Notification.DoesNotExist:
        n = Notification.objects.create(name=name, display_name=display_name,
            public=public)
        n.permissions.add(*permissions)

src/d/j/django-notifier-0.7/notifier/tests.py   django-notifier(Download)
 
        self.test1_notification = models.Notification.objects.create(
            display_name='Test Notification 1',
            name='test-not-1',
            public=True,
 
        self.test2_notification = models.Notification.objects.create(
            display_name='Test Notification 2',
            name='test-not-2',
            public=False,
 
        self.test1_notification = models.Notification.objects.create(
            display_name='Test Notification 1',
            name='test-not-1',
            public=True,

src/d/j/django-notifier-HEAD/notifier/tests.py   django-notifier(Download)
 
        self.test1_notification = models.Notification.objects.create(
            display_name='Test Notification 1',
            name='test-not-1',
            public=True,
 
        self.test2_notification = models.Notification.objects.create(
            display_name='Test Notification 2',
            name='test-not-2',
            public=False,
 
        self.test1_notification = models.Notification.objects.create(
            display_name='Test Notification 1',
            name='test-not-1',
            public=True,